Re: ServerLimit and MaxClients

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

 



On Apr 16, 2010, at 11:40 PM, Brent Clark wrote:

> What is the consequences of an overly increased ServerLimit and MaxClients. 

Your server will run out of memory, and start thrashing memory to disk.  Performance quickly deteriorates.  

> And to add to this puzzle. What if the number of apache process reach that limit.

The first time this happens, you get an emit in the error log.  Apache will run with that many children until the parent process decides they are not needed anymore.  

MaxClients is a misnomer: it is the maximum number of worker processes/threads the server will spin up.  Those workers receive incoming connections from the listener socket(s).  When the server gets busy, connections will queue in the kernel (see ListenBackLog).  Only when the kernel runs out of resources (your workers don't empty the hopper fast enough) will your web server start dropping incoming connections. 

S.

-- 
Sander Temme
sctemme@xxxxxxxxxx
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF




---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[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