What is the best way to configure the number of workers in Apache?
- by rbm
My site receives a lot of traffic for 2 hours during the day (2000 hits per minute). The rest of the day receives less traffic(500e hits per minute).
I have been experimenting with the MaxClients and MaxSpareServers values but I still get some downtime during peek hours.
How can I calculate the best values for my configuration based on the amount of ram that I have ?
Each process is like 36-40 M of Memory
total used free shared buffers cached
Mem: 3096 793 2302 0 0 0
-/+ buffers/cache: 793 2302
Swap:
0 0 0
Values that I am using now
<IfModule prefork.c>
StartServers 10
MinSpareServers 22
MaxSpareServers 60
ServerLimit 90
MaxClients 90
MaxRequestsPerChild 400
</IfModule>