httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From linuxsupport <lin.supp...@gmail.com>
Subject Re: [users@httpd] apache getting stuck after reaching max number of max clients
Date Fri, 28 Sep 2012 05:20:10 GMT
You should keep the KeepAliveTimeout to 5, as 5 seconds are enough

Also, you could think of serving static contents from a threaded mpm
(worker in Apache) or use Nginx in front of Apache that should solve your
problem

On Fri, Sep 28, 2012 at 10:35 AM, val john <valjohn1647@gmail.com> wrote:

> Hi..
>
> Yes its a relay high traffic site, currently i just reduce some time out
> values such as fallows .., make apache to kill child processors more
> quickly. hopefully it makes some improvements
>
>
> Timeout 700
> KeepAliveTimeout 10
>
> Thank You
> john
>
>
>
>
>
>
> On 28 September 2012 08:32, linuxsupport <lin.support@gmail.com> wrote:
>
>> You can raise max client limit as bellow
>>
>> MaxClients 250
>>
>> But if there is any issue with the application/website you are running on
>> the Apache then it will reach to 250 also.
>>
>> Do you have that many requests? 150 concurrent requests are meant for
>> high traffic site.
>>
>> You need to analyze the problem first.
>>
>>
>> On Fri, Sep 28, 2012 at 7:34 AM, val john <valjohn1647@gmail.com> wrote:
>>
>>> Hi.. guys
>>>
>>> My apache config as follows ,
>>>
>>> #
>>> Timeout 1000
>>> KeepAlive Off
>>> MaxKeepAliveRequests 500
>>> KeepAliveTimeout 15
>>>
>>> <IfModule mpm_prefork_module>
>>>     StartServers          5
>>>     MinSpareServers       5
>>>     MaxSpareServers      10
>>>     MaxClients           150
>>>     MaxRequestsPerChild  500
>>> </IfModule>
>>>
>>> my apache getting stuck once hour due following error in the log [1], im
>>> using Debian 5  and have 4G   memory... , what can i  do for fix this
>>> issue..?   .
>>>
>>> my memory is also  fully utilized ,
>>>
>>>              total       used       free     shared    buffers     cached
>>> Mem:          3962       3934         27          0        231       3167
>>> -/+ buffers/cache:        534       3427
>>> Swap:         8192          0       8192
>>>
>>>
>>>
>>>
>>> *[1]  Error*
>>> ======
>>> Thu Sep 27 18:25:42 2012] [error] server reached MaxClients setting,
>>> consider raising the MaxClients setting
>>> [Thu Sep 27 18:29:08 2012] [error] [client 203.143.18.194] File does not
>>> exist: /htdocs
>>> [Thu Sep 27 18:35:26 2012] [error] [client 203.143.18.194] File does not
>>> exist: /htdocs
>>>
>>>
>>> Thank You
>>> john
>>>
>>
>>
>

Mime
View raw message