You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nicholas Sherlock <n....@gmail.com> on 2009/08/12 10:40:42 UTC

[users@httpd] Re: guidance on how to track down crazy apache processes

Timothy Martin wrote:
> Anyway, despite having the prefork mpm set with a limit of 6, my 
> watchdog process (monit) will report process count shooting  up over 50. 
> I can't figure out how apache is letting itself get so many processes 
> spinning out of control. Monit then restarts the server and everything 
> is fine again until the next surge of page requests.
> 
> my Prefork MPM is setup as such:
>        StartServers            3
>         MinSpareServers         3
>         MaxSpareServers         6
>         MaxClients                      80
>         MaxRequestsPerChild     2500

MaxSpareServers is the maximum number of *spare* servers, that is, 
servers that are not serving clients but are instead sitting there doing 
nothing. MaxClients is the parameter which controls the maximum number 
of (busy or idle) Apache processes.

Cheers,
Nicholas Sherlock


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: guidance on how to track down crazy apache processes

Posted by Arnab Ganguly <ag...@gmail.com>.
Try using the worker model. You can limit the process with multiple threads.
Thanks
Arnab

On Wed, Aug 12, 2009 at 2:10 PM, Nicholas Sherlock <n....@gmail.com>wrote:

> Timothy Martin wrote:
>
>> Anyway, despite having the prefork mpm set with a limit of 6, my watchdog
>> process (monit) will report process count shooting  up over 50. I can't
>> figure out how apache is letting itself get so many processes spinning out
>> of control. Monit then restarts the server and everything is fine again
>> until the next surge of page requests.
>>
>> my Prefork MPM is setup as such:
>>       StartServers            3
>>        MinSpareServers         3
>>        MaxSpareServers         6
>>        MaxClients                      80
>>        MaxRequestsPerChild     2500
>>
>
> MaxSpareServers is the maximum number of *spare* servers, that is, servers
> that are not serving clients but are instead sitting there doing nothing.
> MaxClients is the parameter which controls the maximum number of (busy or
> idle) Apache processes.
>
> Cheers,
> Nicholas Sherlock
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>