httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Apache utilzating Very High CPU
Date Mon, 25 Sep 2006 15:37:14 GMT
On 9/25/06, Srikanth S <> wrote:
> Hi,
> Thanks for the reply..
> Another information is, when the load test is being conducted we are
> constantly getting the below error_log file of Apache
> [info]server seems busy ( you may need to increase startServer,
> min/maxspareservers) spawning 8 children, there are 0 idle & total 237
> total children
> What is the optimal value we need to set for
> StartServer/MinSpareServer/MaxSpareServer for below hardware
> configuration
> 2 (900 MHz) CPU/8GB RAM/4GB SWAP

The StartServer/MinSpareServers/MaxSpareServers directives are not
very important on real servers.  It is really only on benchmark tests
where you are going to see an effect.

Again, the optimal setting depends on the specifics of your benchmark
and what you have included in apache.  In general, you want a big
enough gap between Min and MaxSpareServers so that apache doesn't have
to continually fork and kill children to keep in the appropriate
range.  StartServers is usually set equal to MinSpareServers, but can
be set higher if you know that you are going to have a big load on the
server right away.

Probably the optimal setting for general benchmarking would be to set
StartServers and MaxSpareServers equal to MaxClients and
MinSpareServers equal to 1.  That way apache would prefork everything
it needs right at the beginning and never kill anything.  But make
sure that this fits in physical memory.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message