What is the best way to configure the number of workers in Apache?

Posted by rbm on Server Fault See other posts from Server Fault or by rbm
Published on 2010-12-20T15:10:22Z Indexed on 2010/12/21 16:56 UTC
Read the original article Hit count: 172

Filed under:
|
|

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>

© Server Fault or respective owner

Related posts about apache

Related posts about apache2