performance tuning httpd

Today I’m working on performance tuning httpd on the primary production server. It has totally been out of hand this week.

1. Increase MinSpareServers and MaxSpareServers.

MinSpareServers 10
MaxSpareServers 20
StartServers 20

This should decrease the amount of time that apache must spend spawning new processes to handle requests.

2. Set the MaxRequestsPerChild to a high value.

I set this (back) to the default of 10000. I think our initial setting was too low causing httpd to continously spawn new processes.

3. Disable server-status

This just causes apache to keep track of lots of things that it doesn’t need to track.

4. Use Apache::SizeLimit to kill off processes if they grow too large.

Leave a Reply