Skip to main content



Apache webserver

developerWorks

   Recommendations  |   Results

If you have lots of static web pages to serve with your Apache web server we recommend you to use TUX 2.1 for static web pages. If you have dynamic web pages,route all requests for dynamic web pages to another webserver, e.g. Apache 1.3.x/2.0.x to process them. Or use cgi programs written in C which use the TUX API.

When using file caching for Apache 1.3.26 and 2.0.47 ('mmap' parameter in httpd.conf), the performance improves for Apache 1.3.26 up to 45% and for Apache 2.0.47 up to 35%. When comparing Apache 1.3.26 against Apache 2.0.47, the latter is 25% better in non-cached mode and 15% in cached mode. By default TUX 2.1 caches its files inside the Linux buffer cache.

Apache 2.0.47 needed less active servers than Apache 1.3.26 to achieve optimal performance. In our case Apache 1.3.26 needed 500 servers and Apache 2.0.47 only 100 servers for the same test.

How do I get Apache 2.0.x or TUX sources?

The Apache 2.0.x web servers can be downloaded from http://www.apache.org/.
The TUX web server here http://people.redhat.com/~mingo/TUX-patches/.


Back to top


Hints to compile Apache 2.0.47

As reference see www.apache.org for further details. Compile options '-O3 -mno_backchain' were used. The file_cache module, which is not configured by default, was also used.

Configuration:
'./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-cache --enable-file_cache'
Build and install:
'make'
'make install'

Back to top



Team
Please address any comments to the performance team: linux390@de.ibm.com