Archive

Author Archive

Performance tuning Apache web server on Linux – Offering Excellent Result in Less Efforts!

April 20th, 2012 1 comment

Apache HTTP Server Project is an excellent effort of the web developer. In this regard, they will maintain an open foundation HTTP server for advanced OS systems that merge with the Windows NT and UNIX.   The main motto of the project is to offering secure, efficient and extensible server that provide the HTTP services like the HTTP standards.   Due to these reasons, Apache httpd has managed to draw more attention from the web master since April 1996. It is also offering faster and reliable performance that any other web server designs.  Due to these reasons, now Apache web server of Linux is vastly used than any other server.

I am making use of tux as static web server, also have set that to pass all the .php files to Apache that resides on same machine. Make use of hdparm to tune the hard disk. In case, you are making use of default Linux install, this can speed up the hard disk by around 200%. This is useful for the IDE hard disks, however few hdparm settings work with the SCSI also. Modify following httpd.conf parameters:

# disable DNS lookups: The PHP scripts just get IP address

Hostname Lookups off

# disable htaccess checks

<Directory />

AllowOverride none

</Directory>

Turn on FollowSymLinks & turn off SymLinksIfOwnerMatch (the correction by Slive) to prevent any additional lstat() system that calls to be made:

Options FollowSymLinks

Avoid the dithered images when they generally tend to compress very poorly. Spread workload and run the SQL server on other machine. The serve graphics & HTML from other low end PC. In case, all the static content is been served from other server, you can then turn off KeepAlives at httpd.conf on PHP server for speeding up disconnects. Do not make use of the images while text can do. Reduce the image sizes with software such as Adobe ImageReady and MacroMedia Fireworks.

Categories: General, linux Tags:

Performance Tuning Apache web server on Linux – Need to Consider about the Performance!

April 19th, 2012 No comments

Today, Apache has considered as leading web server! It has designed to offer a balance of flexibility, performance, and portability. This web server is offering high performance in critical situations. It can enhance the tuning of web site, and prominently enhance appearance of a web site. Have any confusion about the Apache web server; you have the option to investigate about this web server. You can also ask the previous users of Apache to known the function of this server. In this regard, you can get true answer that Apache is the best web server is not. It’s time to use the Apache web server on your website.

Discusses a few sophisticated methods that includes DNS load balancing & mod_backhand. HP/Compaq Apache tune guide in the PDF and complete & includes the benchmarks. After xenu.net was been slash dotted, they published the Apache optimization tips. I realised all above tips deal in squeezing maximum performance from the single server. Finally, in case, you are very successful, tips will not be enough. You will then have to switch to making use of multiple Apache servers (server farm) with load-balancing, clustering, as well as caching. Making use of Squid as the proxy cache and configuring Squid. Rasmus Lerdorf suggests squidGuard.

Deprecated is recommendation to make use of Apache 2 with the threaded PHP SAPI. PHP has a few global locks, which prevent tat from maximizing the concurrency with some multiple threads. Several of Web servers supported to use with the Siebel Business Applications are totally based on Apache Web Server. It includes IBM HTTP Server, Oracle HTTP Server as well as HP Apache Web Server that are been supported on some UNIX & Linux operating systems. Topic describes suggested parameter settings, which are been optimized for the scalability & performance on the Apache Web Server. You may further adjust the settings at the discretion to optimize performance of the Web server.

Categories: General, linux Tags:

Performance tuning Apache web server on Linux – Highly Scalable for Creation!

April 18th, 2012 No comments

Apache web server of the Linux is highly scalable creation that able to handle open platform to secure so many pages within few time. It is also offering a save and secure environment to the host server.  The users can get huge number of server package by choosing the Apache web server of the Linux system. It is also a right option for the web developer to get good atmosphere for the webhosting.  Now, you can get more information about the Apache web server of the Linux system as well as their related elements from the website of the Linux software sites.

Default setting for the ThreadLimit for Apache Web Server is of 64, however parameter is set to the higher number, and subject to the limitations from the kernel settings. Associated parameters include MaxClients ThreadsPerChild, as well as ServerLimit. Lots of parameter settings are all subject to accessible memory & other resources. The high values for the parameters like MaxClients and ThreadLimit will increase the memory usage and user lower the values for reducing the memory usage.

* ThreadLimit = 20000 is maximum value that is supported by Apache Web Server and you may set parameter to number the system supports.

NOTE:  ThreadLimit parameter should be executed before parameters.

* ThreadsPerChild = Number of threads every child and cannot exceed the ThreadLimit.

* MaxClients = The maximum connection and can’t exceed ThreadsPerChild.

* ServerLimit = Generally, set the parameter to value of the MaxClients that was divided by value of the ThreadsPerChild. (In case, MaxClients & ThreadsPerChild are set same, set ServerLimit. Most important feature of the web server performance is an amount of accessible RAM.  For the Web server support details, Siebel System Requirements & Supported Platforms on the Oracle Technology. For information to tune Web server, see:

* Specifying Static File Caching

* Applicable server tuning topics for the specific operating systems

* Tuning Siebel Web Extension for UNIX & Linux Platforms

 

 

Categories: General, linux Tags:

Performance tuning Apache web server on Linux – Going High On Demand!

April 17th, 2012 No comments

There are many types of web server available but the Apache web server of the Linux is going high on demand. For the operation the users are not required more skilled as well as expertise like other web server. Apache web server is not only cheap with comparison to other but also easy to access. All the software of Linux for the Apache web server is available in the RPM formats. It is also easy for installation and easy for access. However, the users are requires to consider about it that Apache RPM’s filename is stated with the httpd for searching.

Performance Issues with the HostnameLookups & DNS Lookups

It means when you set up the server it is very important to prevent server from making use of swap file since this can dramatically slow down this server. Watch MaxClients setting as webserver might spawn a lot of children that server begins swapping, again the major problem.  MaxClients directive sets limit of the simultaneous requests, which is served.  In case, there are the requests past Maxclients they are queued according to ListenBacklog directive.  Maximum number of the child processes is of 256 for the non-threaded server. Check average Apache process just by opening up top & then divide the size in available memory.  Obviously it is very important to leave extra.

Here is the example of process and note that the top shows the PIDs as the 1383 for apache.  The process is making use of 12,200KB of the virtual memory.  Thus, to follow formula you will take total available memory as well as divide by 1024KB and about 12MB.  That will give you with number of the MaxClients you can add.  However, you can see in the example this server is making use of all the memory thus it will be not wise to add the MaxClients number.

Categories: General, linux Tags:

Performance tuning Apache web server on Linux – Making the Entire Data Processing More Easier!

April 16th, 2012 No comments

Apache web server of the Linux is in pick because it is making the entire data processing of website easier and faster. There is also some helping software of the Linux available that helps the users to makes entire organize smoother and faster.   In case of other web server various types of web software available in the different formats. So, the users can require changing their entire system setting for installation. However, the Linux based software like the RedHat and Fedora are available in the RPM format that matches to every system setting. However, the users are requires to consider when the Apache RPM’s filename will start from the httpd.

Making use of HostnameLookups needs DNS lookup before request is done adding the considerable latency.  Thus, HostnameLookups must get turned off.   In case, you are making use of Allow and Deny from the domain directives you may make the double reverse DNS lookups as first is the forward lookup as well as second is the reverse lookup and verify it’s not spoofed.  It means that you must make use of IP Addresses to make Allow & Deny directives. It is likely to limit the DNS lookups to one feature of Apache server process, example limiting the DNS lookups just for the html and cgi processes.  Here is the example:

HostnameLookups off

<Files ~ “\.(html|cgi)$”>

HostnameLookups on

</Files>

In case, you make use of Allow from the domain or else Deny from the domain, it an increase latency since you may need Apache to do the DNS lookup for every domain setting.  It is good to use the IP Address in this situation.

Use Specific DirectoryIndex

Avoid situation where server needs to figure wildcard option for DirectoryIndex.  Instead of making use of wildcard setting just like this:

DirectoryIndex index

Use specific setting:

DirectoryIndex index.html index.cgi index.pl

You save small amount of the resources just by having most used choice first in list.

Categories: General, linux Tags:

Performance Tuning Apache Web Server on Linux – Excellent and Reputed Web Server!

April 14th, 2012 No comments

Apache is an excellent and reputed Linux-based Web server. It is know use in place of other expensive server’s designs due to faster processing and performance. It is also simple for installation. Once the users can setup the DNS correctly, then they can access the internet easily. Also, the users need to organize Apache that accepts the surfers stand to access their website. So, it is more essential for the users to know the process of configure Apache because it is more required for the success of this process. For easy access the Linux has also offered much software that is making the process easier and faster. In order, to tune very well, you have to benchmark the Web server. You may get a few benchmark figures by using the ApacheBench or httperf. In case, you are the OS agnostic, I suggest making use of Microsoft’s excellent Web Application Tool.

WAST is flexible than ab as it allows you define various GET parameters for every thread. It is very important as it allows you simulate the multiple PHP sessions through PHPSESSID GET parameter. You need to avoid benchmarks that involves PHP sessions while using the ab as sessions can become the artificial bottleneck. More information  on making use of WAST with the PHP. In order, to monitor Apache server, I make use of command top d 1 that displays CPU & memory usage of processes on machine as well as apachectl status.

General rule of the thumb for the hardware upgrades: For the PHP scripts, main bottleneck is CPU. For the static HTML or images, bottleneck is RAM & network. According to the Compaq benchmarks at 1999 (original article is lost because of bitrot), slow 400 Mhz Pentium will saturate the T3 line (that is 45 Mbps) with the static HTML pages. The PHP script is served 2 to 10 times slower than the static HTML page by the Apache. Try and use more of the static HTML webpages as well as fewer scripts.

Categories: General, linux Tags:

Using Lighttpd, Nginx and other Web Servers on Linux – Can be Modifying According to Your Requirement!

April 13th, 2012 No comments

Well, there are many Linux users are wondering for the best web server for the improvement in their system. In this regard the nginx web server is offering them the best possible result. It is becoming a very popular web server due to its reliability and flexibility. Its configuration is well documented and best for some body that is just new to the web server. If you are new to the web server then it’s the nginx web server is just the right option for you. This web server is available in default packages on many Linux systems. It is an open source soft ware program and any one can modify it according to their requirements. Continuing along low memory meme – I also have done lots of testing with the Apache with time, what I have actually found is Apache scales well, providing memory allows – and it goes splat. In some other words, making the Apache work in greater load, you have got 2  choices:

1. Decrease Apaches memory footprint (and you may get that quite small)

2. Add memory

Ostensibly, number of the concurrent requests Apache will handle is:

Anyway, with the 256MB VPS – you do not even wish to go there. Doesn’t matter how much you can optimise, you end up with the built in the scalability limit. Thus, I took close look at the Lighttpd & Nginx.

Web Servers –New Breed

These 2 web servers generally come from different backgrounds, still are rather similar. And both are called – asynchronous servers, when opposed to request every process model of the Apache. Lighttpd is the single threaded server that was developed famously to solve C10K problem; this is, to serve around 10,000 simultaneous links. NginX originates from Russia; and was written for the rambler.ru that is Russias busiest site. That runs with the single master procedure that delegates the work to small number of the worker processes; thus not very single threaded –however light footed, we may say.

 

Categories: General, linux Tags:

Using Lighttpd, Nginx and other Web Servers on Linux – Very Easy to Configure!

April 12th, 2012 No comments

If you are searching for one of the most popular web server for your Linux system, then it’s the lighttpd web server can really help you. Almost higher percent of users are using this web server for its best flexibility, stability and reliability. The configuration of lighttpd web server is very easy and simple to perform just like the Apache web server. Most of the web server administrators choose this web server over others due to various functionalities. It has proven itself in the long run and you don’t need to mistrust its capabilities. By using lighttpd web server in your Linux system now the user can get various flexibilities in their operation.

Actually, I did not know there was something beyond Apache till recently, while I read this You Tube make use of Lighttpd to serve more than 100million crap videos, daily! As anybody who follows the blog may know, I am using Django for developing the new web application (I’m liking that a lot). Django is the Python, and using Python on the Apache you are been supposed to make use of mod_python. mod_python is the excellent piece of the software, it is very quick– and exposes Apaches API. Thus, anything you may do by writing the Apache module in c, and you may do in the mod-python making use of python – and it is very bloody fast.

Drawback is memory; and mod-python has the bad rep for the memory (though in case, you read the Grahams comments on the post, you can see that there are 2 sides of the story). Regardless, Apache is the multithreaded beast –as well as under moderate load you may start to need memory. I am building the web application for operating in the memory confined VPS, thus, even with the optimisations mod_python at Apache actually is not perfect for me. Fortunately, Django can as well run fastcgi, and when I have not done serious load testing– early indications are it appears very reliable.

Categories: General, linux Tags:

Using Lighttpd, Nginx and other Web Servers on Linux – Apache Web Server is serving best for Linux System!

April 11th, 2012 No comments

These days, there are several web servers are available for your Linux system. However, you need to choose the right server to get the flexibility, reliability and stability in your Linux system. In this regard the Apache webs server is found to be the best web server Linux users. Almost 60 percent of the users are using Apache web server in their configuration. Its stability and reliability is one of the best plus point of this web server which is making it a reliable web server all the time. Now, Linux user can configure this web server in their system to get more stability in their performance.

Biggest weakness in the IIS is configurability. Point & clicky configuration actually is one of stupidest ideas come out of the Redmond, mainly when configuration will not get edited or else diffed as simple text file. Have you tried replicating the IIS settings to DR machine?  Apache actually wins out in configuration as well as configurability department. The Apache is more than only the web server, it is undisputed heavyweight champ of the HTTP; in case, you will not do that in Apache (you are doing something totally wrong) you may write the module to do that. In short, the Apache is brilliant – and it has set benchmark as practical, and reliable utilitarian server – it is responsible for more and more Linux server deployments than something else.

Actually, I would dare to say that the Apache is a killer app for the Linux. I have deployed the Apache in different shapes & sizes, in a lot of configurations, as the web servers, as the reverse proxies, behind various load balancers & SSL accelerators –with success. In brief, for this reason I do not believe banking & finance is in the hurry to move from the Apache & embrace new darling of RoR crowd, nginx. For all of reasons above, I have never had cause to look ahead of Apache.

Categories: General, linux Tags:

Using Lighttpd, Nginx and Other Web Servers on Linux – Considered About the Performance Web Servers!

April 8th, 2012 No comments

There are numbers of things that you should consider for selecting one of the best web servers on Linux. However, most essential factors are like security, speed, reliability to consider for selecting the best web servers on Linux. Now, you have the option to choose the best web servers from these Lighttpd, Nginx. These are highly recommended for using as servers because these are having required qualities which are very essential for hosting a website. Now, you can get all information about the Lighttpd, Nginx from web designers. These web servers are really offering some unexpected benefits that required for hosting a website.

LiteSpeed

Brief info: LiteSpeed is the commercial server made specifically for the large sites. One of the LiteSpeed’s benefits is it will read the Apache configurations straight that makes that simple to integrate with the existing products to replace the Apache. Server is very lightweight and name implies fast.

Used by: Twitter, WordPress GigaOm, and Bravenet

Cost: Free $1,299 that depends on edition.

Open Source: No

Homepage: www.litespeedtech.com

OS platforms: FreeBSD, Linux, Solaris, and MacOS X

Zeus

Brief info: Zeus server is the high performance server and it has also received the PC Magazine Editors’ award and eWeek or PC Magazine Innovation in the Infrastructure award and Zeus is highly flexible enterprise item.

* Used by: Telefónica, Sony, phpBB, Virgin media.

* Cost: $1,700 to 2 physical CPUs; around $850 additional CPU.

* OS platforms: FreeBSD, Linux, Solaris, and HP-UX

* Open Source: No

* Homepage: www.zeus.com/products/zws

How many sites are making use of the web servers?

According to Lighttpd Netcraft, is at present, most common of four web servers. On 1 April, numbers of the websites for all were:

Nginx: 1,018,503

Lighttpd: 1,495,308

Zeus: 420,477

LiteSpeed: 668,030

The positions weren’t always same, though. Since you may see by following graph that shows numbers from Jan 2006 to April 2008, situation has also changed significantly with time. That is, till you try and configure it.

Categories: General, linux Tags: