Dec 22, 2011

Apache performance tuning: dynamic modules (II)

Let's continue with the second part of the article titled Apache Performance tuning: dynamic modules (I). Remember that this paper is aimed at reviewing the different modules belonging to Apache, so as to determine whether they are useful for our requirements. To that end, we will be able to fit the amount of memory used by Apache processes.

The most important point is to be aware of that one only process consumes little memory, but if our Apache installation requires lots of processes, the total memory grabbed by Apache will be huge. So if we get hold of turning down the initial memory with which a process is created, afterwards it will run lighter and besides, we will have that free memory available in order to be allocated for other things.


Forwards the response body to an external program before sending it out to the client.

# LoadModule ext_filter_module modules/


Filters files before delivering them to the client.

# LoadModule include_module modules/


Provides a comprehensive overview of the web server configuration.

# LoadModule info_module modules/


Improves the performance of websites by pooling LDAP connections and caching responses.

# LoadModule ldap_module modules/


Logs the input and output number of bytes received/sent per request.

# LoadModule logio_module modules/


Puts into action a a proxy/gateway.

# LoadModule proxy_module modules/
# LoadModule proxy_balancer_module modules/
# LoadModule proxy_ftp_module modules/
# LoadModule proxy_http_module modules/
# LoadModule proxy_ajp_module modules/
# LoadModule proxy_connect_module modules/

mod speling

Tries to correct erroneous URLs that users could have typed by overlooking capitalization and allowing up to one misspelling.

# LoadModule speling_module modules/


Provides statistics about the activity and performance of the web server.

# LoadModule status_module modules/


Allows CGI scripts to run as a concrete user and group.

# LoadModule suexec_module modules/


Allows user directories can be accessed through the web server.

# LoadModule userdir_module modules/


Logs user activity.

# LoadModule usertrack_module modules/

After disabling these modules, the memory used by one Apache process (and owned by apache user) went from 2.02 to 1.46 MB, that is to say, we have gained around 0.6 MB. If you take into account that a large number of processes can be running on the system at any given time, the saved memory might be appreciable. In addition, you have to consider that from now on, a process is much lighter, with what its startup and performance will be much better.

No comments:

Post a Comment