You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Helmut Schneider <ju...@gmx.de> on 2012/01/15 19:31:41 UTC
[users@httpd] MaxClients 256 but server-status show 1024 slots
Hi,
u1dd_hr@desoggw04:~$ sudo grep -ir MaxClients /etc/apache2/
/etc/apache2/apache2.conf: MaxClients 150
/etc/apache2/apache2.conf: MaxClients 150
/etc/apache2/apache2.conf: MaxClients 150
/etc/apache2/Includes/server.conf.local: MaxClients 256
/etc/apache2/Includes/server.conf.local: MaxClients 256
/etc/apache2/Includes/server.conf.local: MaxClients 256
/etc/apache2/apache2.conf.org:# MaxClients: maximum number of server
processes allowed to start
/etc/apache2/apache2.conf.org: MaxClients 150
/etc/apache2/apache2.conf.org:# MaxClients: maximum number of
simultaneous client connections
/etc/apache2/apache2.conf.org: MaxClients 150
/etc/apache2/apache2.conf.org:# MaxClients: maximum number of
simultaneous client connections
/etc/apache2/apache2.conf.org: MaxClients 150
u1dd_hr@desoggw04:~$
So the highest value configured is 256 (setting at server.conf.local
overwrite defaults at apache2.conf). But /server-status shows:
___KWKC__KW____________K_.......................................
_W_K__K_KKKWK________KK_K.......................................
__________KK____K_K___W__.......................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
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
~$
Thanks and Regards, Helmut
---------------------------------------------------------------------
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
Re: [users@httpd] Re: MaxClients 256 but server-status show 1024
slots
Posted by Jeroen Geilman <je...@adaptr.nl>.
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
[users@httpd] Re: MaxClients 256 but server-status show 1024 slots
Posted by Helmut Schneider <ju...@gmx.de>.
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: MaxClients 256 but server-status show 1024
slots
Posted by Jeroen Geilman <je...@adaptr.nl>.
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.
--
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
[users@httpd] Re: MaxClients 256 but server-status show 1024 slots
Posted by Helmut Schneider <ju...@gmx.de>.
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. Of course I could
also raise MaxClients to 1024 but that is much more than required
(allthough the server has 2G of RAM and is a dedicated Webserver).
---------------------------------------------------------------------
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
Re: [users@httpd] Re: MaxClients 256 but server-status show 1024
slots
Posted by Jeroen Geilman <je...@adaptr.nl>.
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.
--
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
[users@httpd] Re: MaxClients 256 but server-status show 1024 slots
Posted by Helmut Schneider <ju...@gmx.de>.
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.
---------------------------------------------------------------------
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
Re: [users@httpd] MaxClients 256 but server-status show 1024 slots
Posted by Jeroen Geilman <je...@adaptr.nl>.
On 01/15/2012 07:31 PM, Helmut Schneider wrote:
> Hi,
>
> u1dd_hr@desoggw04:~$ sudo grep -ir MaxClients /etc/apache2/
> /etc/apache2/apache2.conf: MaxClients 150
> /etc/apache2/apache2.conf: MaxClients 150
> /etc/apache2/apache2.conf: MaxClients 150
> /etc/apache2/Includes/server.conf.local: MaxClients 256
> /etc/apache2/Includes/server.conf.local: MaxClients 256
> /etc/apache2/Includes/server.conf.local: MaxClients 256
> /etc/apache2/apache2.conf.org:# MaxClients: maximum number of server
> processes allowed to start
> /etc/apache2/apache2.conf.org: MaxClients 150
> /etc/apache2/apache2.conf.org:# MaxClients: maximum number of
> simultaneous client connections
> /etc/apache2/apache2.conf.org: MaxClients 150
> /etc/apache2/apache2.conf.org:# MaxClients: maximum number of
> simultaneous client connections
> /etc/apache2/apache2.conf.org: MaxClients 150
> u1dd_hr@desoggw04:~$
>
> So the highest value configured is 256 (setting at server.conf.local
> overwrite defaults at apache2.conf). But /server-status shows:
>
> ___KWKC__KW____________K_.......................................
> _W_K__K_KKKWK________KK_K.......................................
> __________KK____K_K___W__.......................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
> ................................................................
>
> 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
> ~$
>
> Thanks and Regards, Helmut
Are you using worker or prefork ? What is serverlimit set to ?
--
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