Re: MaxClients 256 but server-status show 1024 slots

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

 



Jeroen Geilman wrote:

> On 01/15/2012 08:13 PM, Helmut Schneider wrote:
> > Jeroen Geilman wrote:
> > 
> > > On 01/15/2012 08:01 PM, Helmut Schneider wrote:
> > > > Jeroen Geilman wrote:
> > > > 
> > > > > On 01/15/2012 07:31 PM, Helmut Schneider wrote:
> > > > [...]
> > > > > > So the highest value configured is 256 (setting at
> > > > > > server.conf.local overwrite defaults at apache2.conf). But
> > > > > > /server-status shows:
> > > > [...]
> > > > > > That's 1024 slots. And yes, I stopped and restarted apache
> > > > > > and even the server itself.
> > > > > > 
> > > > > > What's wrong here?
> > > > > > 
> > > > > > ~$ apache2 -v
> > > > > > Server version: Apache/2.2.14 (Ubuntu)
> > > > > > Server built:   Nov  3 2011 03:30:19
> > > > > > ~$
> > > > > Are you using worker or prefork ? What is serverlimit set to ?
> > > > Ah, I see. It is configured to use worker. Am I correct that I
> > > > need to adjust either ThreadsPerChild or ServerLimit (or
> > > > both)?! What is recommended? Both are currently unset/defaults.
> > > What is it you want to do ?
> > > Worker threads consume very little memory, the defaults are fine.
> > Check apache with nagios. I have a plugin that checks available
> > slots and when "MaxClients != open slots" Nagios thinks that
> > everything is fine while apache does not serve new clients anymore.
> 
> That would be a nagios bug, then.

No, it has nothing to do with nagios. The plugin just checks how many
slots are available counting the dots from /server-status while afaiu
MaxClients possibly limits them to a smaller value.


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