Re: apache getting stuck after reaching max number of max clients

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxx> 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




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux