Notes on tuning Apache

This is starting out as just a list of articles to review. Stay tuned for actual examples.

Tuning Apache for High Traffic

5 rules to optimize your server

Apache with fcgid

Apache Performance Tuning

How to Tweak Apache for Maximum Load

Beyond increasing MaxClients and MaximumRequestsPerChild, a key recommendation by all these sources is to set KeepAlive to On but use a really low value like 3 or even 2 for the KeepAliveTimeout.

Another suggestion is to co-locate a nginx reverse proxy on the same server as Apache and proxy all traffic nginx to Apache. This is reminiscent of the old webmaster’s trick of putting squid in front of Apache as a caching proxy server.

How to handle 1000’s of concurrent users

Nginx configuration examples can be found in the Nginx Wiki.

How To: Use Nginx as a Reverse Proxy.

Of course in a LAMP stack the web server is just one part of the puzzle. Both php and the database server will also need tuning.

Configuring MySQL for High Number of Connections per Second

This entry was posted in Systems Analysis on by .

About phil

My name is Phil Lembo. In my day job I’m an enterprise IT architect for a leading distribution and services company. The rest of my time I try to maintain a semi-normal family life in the suburbs of Raleigh, NC. E-mail me at philipATlembobrothersDOTcom. The opinions expressed here are entirely my own and not those of my employers, past, present or future (except where I quote others, who will need to accept responsibility for their own rants).