httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Halicky <p...@halicky.sk>
Subject Re: [users@httpd] apache hanging whole system
Date Mon, 17 May 2010 06:15:18 GMT
Hi Igor,

that's not the case, whatever I set the MaxClients to, it will happen,
just the degree of system non-responsiveness is higher.

Thanks,
Peter

On 17.05.2010 01:13, Igor Cicimov wrote:
>
> Sounds like you r running out of capacity. If the RAM is not an issue
> increase the MaxClients. Also run
> $ pgrep apache2 ¦ wc -l
> Or
> $ pgrep httpd ¦ wc -l
> to confirm you are reaching 80
>
> Sent from my phone
>
>> On May 17, 2010 6:43 AM, "Peter Halicky" <peto@halicky.sk
>> <mailto:peto@halicky.sk>> wrote:
>>
>> Hi,
>>
>> I run a "LAMP" server with a few websites, one of them quite busy. I use
>> Ubuntu 8.04 with apache 2.2.8
>> and PHP 5.2.4. The problem is this: about once a day, apache processes
>> cause the system load to go very
>> high (today it was ~30). During this time, I can not display any webpage
>> on my server. If I do not notice, the
>> problem goes away after 3-10 minutes. If I do notice, I can ssh into the
>> server (if I'm lucky and I get a connection,
>> which could be a problem with sysload over 30+), I kill all apache
>> processes (very many of them, usually equal
>> to MaxClients), restart and everything is fine (with sysload rarely
>> above 2, usually around 0.5).
>>
>> I use the prefork MPM with the following settings (just for the record):
>>
>>    StartServers          5
>>    MinSpareServers       5
>>    MaxSpareServers      10
>>    MaxClients           80
>>    MaxRequestsPerChild  10
>>
>> I have also reduced the KeepAliveTimeout to 3 seconds.
>>
>> The logs did not show anything interesting or out of the ordinary. Also
>> this happens quite randomly, not really
>> in the busiest hours (yesterday it was at 6am, which is the least busy
>> time for the server).
>>
>> I configured a mod_status URL which I am monitoring, to see what is
>> making apache so busy. Unfortunately,
>> when this happens, apache is so busy that it doesn't respond to these
>> requests...
>>
>> Any advice would be much appreciated.
>>
>> Thanks!
>> Peter
>>
>> ---------------------------------------------------------------------
>> 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
>> <mailto:users-unsubscribe@httpd.apache.org>
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> <mailto:users-digest-unsubscribe@httpd.apache.org>
>> For additional commands, e-mail: users-help@httpd.apache.org
>> <mailto:users-help@httpd.apache.org>
>>

Mime
View raw message