How do MaxSpareServers work in Apache?

Posted by John Hunt on Server Fault See other posts from Server Fault or by John Hunt
Published on 2012-10-02T15:01:34Z Indexed on 2012/10/02 15:40 UTC
Read the original article Hit count: 267

Filed under:
|

I've scoured the web but I can't find out what MaxSpareServers are in Apache MPM prefork..

The MaxSpareServers directive sets the desired maximum number of idle child server processes. An idle process is one which is not handling a request. If there are more than MaxSpareServers idle, then the parent process will kill off the excess processes.

Great, but what causes a spareserver to be created? More importantly, when does a spare server go away? I understand that minspareservers are created gradually after the server is started..

How do maxspareservers relate to maxclients?

Basically I'm at a bit of a loss on how best to configure Apache.. there's a lot of documentation out there but it isn't that clear.

Thanks, John.

© Server Fault or respective owner

Related posts about apache2

Related posts about mpm-prefork