Simple Way to Improve Apache Performance

When I was first setting up my Linode server, I spent quite a bit of time tweaking the Apache config files for performance. I ran a few tests with ab and kept a close eye on the graphs in Munin to see what worked and what didn’t. The single most effective change I made was changing KeepAliveTimeout. This controls the number of seconds Apache will wait for a subsequent request before closing the connection. It’s like a bartender serving drinks and waiting 15 seconds after serving a client in case they want something else before helping the next customer. You end up with a lot of waiting.

This chart shows the results of reducing KeepAliveTimeout from the default of 15 to 2. I’m sure you can see when the change took place because all the busy servers go away.

Daily Apache Processes







Number of readers
- home
comics
news links
other links

about me
blog archives
docs
entertainment
experiences
funny lists
humor
intellectual
interests
metafilter
music
opinions
photos
web designs
tools
software
webmaster help

Sign up
Enter your email address to be notified of new blog posts



Search blog archives

Calendar
June 2010
S M T W T F S
« May   Jul »
 12345
6789101112
13141516171819
20212223242526
27282930  







Random quote
(View all quotes)
"I would rather say that a desire to drive fast sports cars is what sets man apart from the animals."










(?) Choose theme:  X X X X X X