httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Geilman <jer...@adaptr.nl>
Subject Re: [users@httpd] Re: MaxClients 256 but server-status show 1024 slots
Date Sun, 15 Jan 2012 22:16:41 GMT
On 01/15/2012 10:45 PM, Helmut Schneider wrote:
> 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.
>

Exactly. So the check is incorrect.

-- 
J.


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


Mime
View raw message