Re: Number of apache2 process > MaxClients ?
On 10/29/2010 11:06 AM, Min Wang wrote:
> I have apache2.conf using prefork with MaxClient setting to 30 ( on Lenny)
> but on system I saw more than 100 apache2 processes
> Isn't the MaxClients supposed to limit total apache2 processes to be 30?
> Something may be wrong/security issue?
> # pstree
> | `-7*[apache2]
> # prefork MPM
> <IfModule prefork.c>
> StartServers 5
> MinSpareServers 5
> MaxSpareServers 10
> MaxClients 30
> MaxRequestsPerChild 0
How quickly are you doing this? With prefork a new process is created
for each client, when doing a bench this *can* make it seem like you are
creating an abnormal amount of processes because the queue is filling up
and the KA is either too low or too high (rarely too high but I've seen
it spawn incorrectly with a high KA.) What I am saying is, are you sure
they aren't /dying/ or /defunct/?