You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Cohen, Laurence" <lc...@novetta.com> on 2016/04/24 17:14:47 UTC

[users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Hi,

I need to increase my httpd server's MaxClients and ServerLimit.  Can I
just do a

service httpd reload

to load the new settings?

Or do I need to do a

service httpd restart

to load the new settings?

This is on a production server with active users, so obviously the former
is preferable.

Thanks,

Larry Cohen

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by Yann Ylavic <yl...@gmail.com>.
On Mon, Apr 25, 2016 at 8:00 PM, Cohen, Laurence <lc...@novetta.com> wrote:
> Hi, I really appreciate your response.  What I'd like to know is, how do I look up this
> information on my own?
> I use this mailing list generally as a last resort when I can't find the answer myself.
> In the case, I did a lot of research before I asked my question, but couldn't get a definitive
> answer.  If you could point me to the documentation that you are using I'd greatly appreciate it.

http://httpd.apache.org/docs/2.2/mod/mpm_common.html#serverlimit
(resp. #threadlimit) states that: "Any attempts to change this
directive during a restart will be ignored, but MaxClients [resp.
ThreadsPerChild] can be modified during a restart up to the value of
this directive."

Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by "Cohen, Laurence" <lc...@novetta.com>.
Thank you.  BTW, 2.2 is not outdated.  It just what RedHat supports for
RHEL6.  We can't go to 2.4 until we go to RHEL7.  We on government
contracts are not free to upgrade to the latest and greatest at our whim.
We can only make suggestions, but ultimately the decisions are made by the
people paying our salaries.  We only upgraded to RHEL6 about 8 months ago,
so it will be a while before we go to RHEL7.

Thanks for your help.  I really appreciate it!

Larry

On Mon, Apr 25, 2016 at 3:23 PM, Rainer Jung <ra...@kippdata.de>
wrote:

> Am 25.04.2016 um 20:00 schrieb Cohen, Laurence:
>
>> Hi, I really appreciate your response.  What I'd like to know is, how do
>> I look up this information on my own?  I use this mailing list generally
>> as a last resort when I can't find the answer myself.  In the case, I
>> did a lot of research before I asked my question, but couldn't get a
>> definitive answer.  If you could point me to the documentation that you
>> are using I'd greatly appreciate it.
>>
>
> Since you are still using the slightly outdated 2.2, the page
>
> https://httpd.apache.org/docs/2.2/en/mod/mpm_common.html
>
> is the official documentation. Looking at for instance
>
> https://httpd.apache.org/docs/2.2/en/mod/mpm_common.html#threadlimit
>
> and
>
> https://httpd.apache.org/docs/2.2/en/mod/mpm_common.html#serverlimit
>
> there's at least some sort of info about restarts and how the params
> relate to each other. But maybe not as easy to grok as it should be.
>
> Regards,
>
> Rainer
>
> On Mon, Apr 25, 2016 at 4:32 AM, Rainer Jung <rainer.jung@kippdata.de
>> <ma...@kippdata.de>> wrote:
>>
>>     ServerLimit and ThreadLimit configure the size of an internal
>>     structure which maintains data about processes and threads. This
>>     structure is only created during Apache start, so if you want to
>>     change these two params, you need to stop and start.
>>
>>     ThreadsPerChild and MaxClients can be changed and activates with
>>     "apachectl graceful", no need to restart. Only if ThreadsPerChild
>>     needs to get increased higher than ThreadLimit, or
>>     MaxClients/ThreadsPerChild needs to be increased higher than
>>     ServerLimit, you need to adjust these as well and therefore need a
>>     completely new start.
>>
>>     So if you want to reserve some reserve space for ThreadsPerChild or
>>     MaxClients, you should configure ThreadLimit = ThreadsPerChild +
>>     "reserved additional threads" and ServerLimit =
>>     MaxClients/ThreadsPerChild + "reserved additional
>>     clients"/ThreadsPerChild.
>>
>>     HTH,
>>
>>     Rainer
>>
>>     Am 24.04.2016 um 21:28 schrieb Cohen, Laurence:
>>
>>         Thanks,
>>
>>         I should have mentioned that I'm running Apache HTTPD 2.2 on a
>>         RHEL6.7
>>         system.  There it is tied to MaxClients which is getting changed
>> at
>>         restart.  I believe, according to this that I need to do a full
>>         stop and
>>         start to get this to work.
>>
>>         Thanks for your help!
>>
>>         Larry
>>
>>         On Sun, Apr 24, 2016 at 3:22 PM, Ben RUBSON
>>         <ben.rubson@gmail.com <ma...@gmail.com>
>>         <mailto:ben.rubson@gmail.com <ma...@gmail.com>>>
>> wrote:
>>
>>
>> https://httpd.apache.org/docs/current/en/mod/mpm_common.html#serverlimit
>>
>>                  Le 24 avr. 2016 à 21:20, Cohen, Laurence
>>             <lcohen@novetta.com <ma...@novetta.com>
>>                  <mailto:lcohen@novetta.com
>>             <ma...@novetta.com>>> a écrit :
>>
>>                  Thank you!  Which doc are you reading?  I'd like to
>>             look at it.
>>
>>                  On Sun, Apr 24, 2016 at 3:08 PM, Ben RUBSON
>>             <ben.rubson@gmail.com <ma...@gmail.com>
>>                  <mailto:ben.rubson@gmail.com
>>             <ma...@gmail.com>>> wrote:
>>
>>                      Reading the doc, seems that ServerLimit is related to
>>                      MaxRequestWorkers (which has a default set to 256).
>>
>>                      Ben
>>
>>
>>
>>                          Le 24 avr. 2016 à 20:52, Cohen, Laurence
>>                 <lcohen@novetta.com <ma...@novetta.com>
>>                          <mailto:lcohen@novetta.com
>>
>>                 <ma...@novetta.com>>> a écrit :
>>
>>                          Hello,
>>
>>                          While reloading httpd did increase MaxClients
>>                 to 400 as
>>                          specified, it did not increase ServerLimit to
>>                 400 as
>>                          specified.  What is worse is that since
>>                 ServerLimit remained
>>                          at 256, this caused MaxClients to be reduced to
>>                 256 since
>>                          ServerLimit seems to be the hard limit for
>>                 MaxClients.
>>
>>                          Even more frustrating is that when I did a
>>                 service httpd
>>                          restart, it not only did not increase
>>                 ServerLimit to 400, but
>>                          it threw an error that the attempt to increase
>>                 ServerLimit
>>                          during a restart was ignored.
>>
>>                          Any ideas why I cannot increase the ServerLimit?
>>
>>                          Thanks,
>>
>>                          Laurence Cohen
>>
>>                          On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON
>>                          <ben.rubson@gmail.com
>>                 <ma...@gmail.com>
>>                 <mailto:ben.rubson@gmail.com
>>                 <ma...@gmail.com>>> wrote:
>>
>>                              Hi,
>>
>>                              reload will do it !
>>
>>                              Ben
>>
>>
>>                                  Le 24 avr. 2016 à 17:14, Cohen, Laurence
>>                                  <lcohen@novetta.com
>>                     <ma...@novetta.com>
>>                     <mailto:lcohen@novetta.com
>>                     <ma...@novetta.com>>> a écrit :
>>
>>                                  Hi,
>>
>>                                  I need to increase my httpd server's
>>                     MaxClients and
>>                                  ServerLimit.  Can I just do a
>>
>>                                  service httpd reload
>>
>>                                  to load the new settings?
>>
>>                                  Or do I need to do a
>>
>>                                  service httpd restart
>>
>>                                  to load the new settings?
>>
>>                                  This is on a production server with
>>                     active users, so
>>                                  obviously the former is preferable.
>>
>>                                  Thanks,
>>
>>                                  Larry Cohen
>>
>>
>>
>>
>>
>>                          --
>>                 www.novetta.com <http://www.novetta.com>
>>                          Larry Cohen
>>                          System Administrator
>>
>>                          12021 Sunset Hills Road, Suite 400
>>                          Reston, VA 20190
>>                          Email lcohen@novetta.com
>>                 <ma...@novetta.com> <http://novetta.com/>
>>                          Office 703-885-1064
>>
>>
>>
>>
>>
>>                  --
>>             www.novetta.com <http://www.novetta.com>
>>                  Larry Cohen
>>                  System Administrator
>>
>>                  12021 Sunset Hills Road, Suite 400
>>                  Reston, VA 20190
>>                  Email lcohen@novetta.com <ma...@novetta.com>
>>             <http://novetta.com/>
>>                  Office 703-885-1064
>>
>>
>>
>>
>>
>>         --
>>
>>         www.novetta.com <http://www.novetta.com>
>>
>>         Larry Cohen
>>
>>         System Administrator
>>
>>
>>         12021 Sunset Hills Road, Suite 400
>>
>>         Reston, VA 20190
>>
>>         Email lcohen@novetta.com <ma...@novetta.com>
>>         <http://novetta.com>
>>
>>         Office 703-885-1064
>>
>>
>>     ---------------------------------------------------------------------
>>     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>     <ma...@httpd.apache.org>
>>     For additional commands, e-mail: users-help@httpd.apache.org
>>     <ma...@httpd.apache.org>
>>
>>
>>
>>
>> --
>>
>> www.novetta.com
>>
>> Larry Cohen
>>
>> System Administrator
>>
>>
>> 12021 Sunset Hills Road, Suite 400
>>
>> Reston, VA 20190
>>
>> Email lcohen@novetta.com <http://novetta.com>
>>
>> Office 703-885-1064
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 

[image: www.novetta.com]

Larry Cohen

System Administrator


12021 Sunset Hills Road, Suite 400

Reston, VA 20190

Email  lcohen@novetta.com

Office  703-885-1064

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by Rainer Jung <ra...@kippdata.de>.
Am 25.04.2016 um 20:00 schrieb Cohen, Laurence:
> Hi, I really appreciate your response.  What I'd like to know is, how do
> I look up this information on my own?  I use this mailing list generally
> as a last resort when I can't find the answer myself.  In the case, I
> did a lot of research before I asked my question, but couldn't get a
> definitive answer.  If you could point me to the documentation that you
> are using I'd greatly appreciate it.

Since you are still using the slightly outdated 2.2, the page

https://httpd.apache.org/docs/2.2/en/mod/mpm_common.html

is the official documentation. Looking at for instance

https://httpd.apache.org/docs/2.2/en/mod/mpm_common.html#threadlimit

and

https://httpd.apache.org/docs/2.2/en/mod/mpm_common.html#serverlimit

there's at least some sort of info about restarts and how the params 
relate to each other. But maybe not as easy to grok as it should be.

Regards,

Rainer

> On Mon, Apr 25, 2016 at 4:32 AM, Rainer Jung <rainer.jung@kippdata.de
> <ma...@kippdata.de>> wrote:
>
>     ServerLimit and ThreadLimit configure the size of an internal
>     structure which maintains data about processes and threads. This
>     structure is only created during Apache start, so if you want to
>     change these two params, you need to stop and start.
>
>     ThreadsPerChild and MaxClients can be changed and activates with
>     "apachectl graceful", no need to restart. Only if ThreadsPerChild
>     needs to get increased higher than ThreadLimit, or
>     MaxClients/ThreadsPerChild needs to be increased higher than
>     ServerLimit, you need to adjust these as well and therefore need a
>     completely new start.
>
>     So if you want to reserve some reserve space for ThreadsPerChild or
>     MaxClients, you should configure ThreadLimit = ThreadsPerChild +
>     "reserved additional threads" and ServerLimit =
>     MaxClients/ThreadsPerChild + "reserved additional
>     clients"/ThreadsPerChild.
>
>     HTH,
>
>     Rainer
>
>     Am 24.04.2016 um 21:28 schrieb Cohen, Laurence:
>
>         Thanks,
>
>         I should have mentioned that I'm running Apache HTTPD 2.2 on a
>         RHEL6.7
>         system.  There it is tied to MaxClients which is getting changed at
>         restart.  I believe, according to this that I need to do a full
>         stop and
>         start to get this to work.
>
>         Thanks for your help!
>
>         Larry
>
>         On Sun, Apr 24, 2016 at 3:22 PM, Ben RUBSON
>         <ben.rubson@gmail.com <ma...@gmail.com>
>         <mailto:ben.rubson@gmail.com <ma...@gmail.com>>> wrote:
>
>         https://httpd.apache.org/docs/current/en/mod/mpm_common.html#serverlimit
>
>                  Le 24 avr. 2016 à 21:20, Cohen, Laurence
>             <lcohen@novetta.com <ma...@novetta.com>
>                  <mailto:lcohen@novetta.com
>             <ma...@novetta.com>>> a écrit :
>
>                  Thank you!  Which doc are you reading?  I'd like to
>             look at it.
>
>                  On Sun, Apr 24, 2016 at 3:08 PM, Ben RUBSON
>             <ben.rubson@gmail.com <ma...@gmail.com>
>                  <mailto:ben.rubson@gmail.com
>             <ma...@gmail.com>>> wrote:
>
>                      Reading the doc, seems that ServerLimit is related to
>                      MaxRequestWorkers (which has a default set to 256).
>
>                      Ben
>
>
>
>                          Le 24 avr. 2016 à 20:52, Cohen, Laurence
>                 <lcohen@novetta.com <ma...@novetta.com>
>                          <mailto:lcohen@novetta.com
>                 <ma...@novetta.com>>> a écrit :
>
>                          Hello,
>
>                          While reloading httpd did increase MaxClients
>                 to 400 as
>                          specified, it did not increase ServerLimit to
>                 400 as
>                          specified.  What is worse is that since
>                 ServerLimit remained
>                          at 256, this caused MaxClients to be reduced to
>                 256 since
>                          ServerLimit seems to be the hard limit for
>                 MaxClients.
>
>                          Even more frustrating is that when I did a
>                 service httpd
>                          restart, it not only did not increase
>                 ServerLimit to 400, but
>                          it threw an error that the attempt to increase
>                 ServerLimit
>                          during a restart was ignored.
>
>                          Any ideas why I cannot increase the ServerLimit?
>
>                          Thanks,
>
>                          Laurence Cohen
>
>                          On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON
>                          <ben.rubson@gmail.com
>                 <ma...@gmail.com>
>                 <mailto:ben.rubson@gmail.com
>                 <ma...@gmail.com>>> wrote:
>
>                              Hi,
>
>                              reload will do it !
>
>                              Ben
>
>
>                                  Le 24 avr. 2016 à 17:14, Cohen, Laurence
>                                  <lcohen@novetta.com
>                     <ma...@novetta.com>
>                     <mailto:lcohen@novetta.com
>                     <ma...@novetta.com>>> a écrit :
>
>                                  Hi,
>
>                                  I need to increase my httpd server's
>                     MaxClients and
>                                  ServerLimit.  Can I just do a
>
>                                  service httpd reload
>
>                                  to load the new settings?
>
>                                  Or do I need to do a
>
>                                  service httpd restart
>
>                                  to load the new settings?
>
>                                  This is on a production server with
>                     active users, so
>                                  obviously the former is preferable.
>
>                                  Thanks,
>
>                                  Larry Cohen
>
>
>
>
>
>                          --
>                 www.novetta.com <http://www.novetta.com>
>                          Larry Cohen
>                          System Administrator
>
>                          12021 Sunset Hills Road, Suite 400
>                          Reston, VA 20190
>                          Email lcohen@novetta.com
>                 <ma...@novetta.com> <http://novetta.com/>
>                          Office 703-885-1064
>
>
>
>
>
>                  --
>             www.novetta.com <http://www.novetta.com>
>                  Larry Cohen
>                  System Administrator
>
>                  12021 Sunset Hills Road, Suite 400
>                  Reston, VA 20190
>                  Email lcohen@novetta.com <ma...@novetta.com>
>             <http://novetta.com/>
>                  Office 703-885-1064
>
>
>
>
>
>         --
>
>         www.novetta.com <http://www.novetta.com>
>
>         Larry Cohen
>
>         System Administrator
>
>
>         12021 Sunset Hills Road, Suite 400
>
>         Reston, VA 20190
>
>         Email lcohen@novetta.com <ma...@novetta.com>
>         <http://novetta.com>
>
>         Office 703-885-1064
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>     <ma...@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <ma...@httpd.apache.org>
>
>
>
>
> --
>
> www.novetta.com
>
> Larry Cohen
>
> System Administrator
>
>
> 12021 Sunset Hills Road, Suite 400
>
> Reston, VA 20190
>
> Email lcohen@novetta.com <http://novetta.com>
>
> Office 703-885-1064

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by "Cohen, Laurence" <lc...@novetta.com>.
Hi, I really appreciate your response.  What I'd like to know is, how do I
look up this information on my own?  I use this mailing list generally as a
last resort when I can't find the answer myself.  In the case, I did a lot
of research before I asked my question, but couldn't get a definitive
answer.  If you could point me to the documentation that you are using I'd
greatly appreciate it.

Thanks,

Larry Cohen

On Mon, Apr 25, 2016 at 4:32 AM, Rainer Jung <ra...@kippdata.de>
wrote:

> ServerLimit and ThreadLimit configure the size of an internal structure
> which maintains data about processes and threads. This structure is only
> created during Apache start, so if you want to change these two params, you
> need to stop and start.
>
> ThreadsPerChild and MaxClients can be changed and activates with
> "apachectl graceful", no need to restart. Only if ThreadsPerChild needs to
> get increased higher than ThreadLimit, or MaxClients/ThreadsPerChild needs
> to be increased higher than ServerLimit, you need to adjust these as well
> and therefore need a completely new start.
>
> So if you want to reserve some reserve space for ThreadsPerChild or
> MaxClients, you should configure ThreadLimit = ThreadsPerChild + "reserved
> additional threads" and ServerLimit = MaxClients/ThreadsPerChild +
> "reserved additional clients"/ThreadsPerChild.
>
> HTH,
>
> Rainer
>
> Am 24.04.2016 um 21:28 schrieb Cohen, Laurence:
>
>> Thanks,
>>
>> I should have mentioned that I'm running Apache HTTPD 2.2 on a RHEL6.7
>> system.  There it is tied to MaxClients which is getting changed at
>> restart.  I believe, according to this that I need to do a full stop and
>> start to get this to work.
>>
>> Thanks for your help!
>>
>> Larry
>>
>> On Sun, Apr 24, 2016 at 3:22 PM, Ben RUBSON <ben.rubson@gmail.com
>> <ma...@gmail.com>> wrote:
>>
>>
>> https://httpd.apache.org/docs/current/en/mod/mpm_common.html#serverlimit
>>
>>     Le 24 avr. 2016 à 21:20, Cohen, Laurence <lcohen@novetta.com
>>>     <ma...@novetta.com>> a écrit :
>>>
>>>     Thank you!  Which doc are you reading?  I'd like to look at it.
>>>
>>>     On Sun, Apr 24, 2016 at 3:08 PM, Ben RUBSON <ben.rubson@gmail.com
>>>     <ma...@gmail.com>> wrote:
>>>
>>>         Reading the doc, seems that ServerLimit is related to
>>>         MaxRequestWorkers (which has a default set to 256).
>>>
>>>         Ben
>>>
>>>
>>>
>>>         Le 24 avr. 2016 à 20:52, Cohen, Laurence <lcohen@novetta.com
>>>>         <ma...@novetta.com>> a écrit :
>>>>
>>>>         Hello,
>>>>
>>>>         While reloading httpd did increase MaxClients to 400 as
>>>>         specified, it did not increase ServerLimit to 400 as
>>>>         specified.  What is worse is that since ServerLimit remained
>>>>         at 256, this caused MaxClients to be reduced to 256 since
>>>>         ServerLimit seems to be the hard limit for MaxClients.
>>>>
>>>>         Even more frustrating is that when I did a service httpd
>>>>         restart, it not only did not increase ServerLimit to 400, but
>>>>         it threw an error that the attempt to increase ServerLimit
>>>>         during a restart was ignored.
>>>>
>>>>         Any ideas why I cannot increase the ServerLimit?
>>>>
>>>>         Thanks,
>>>>
>>>>         Laurence Cohen
>>>>
>>>>         On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON
>>>>         <ben.rubson@gmail.com <ma...@gmail.com>> wrote:
>>>>
>>>>             Hi,
>>>>
>>>>             reload will do it !
>>>>
>>>>             Ben
>>>>
>>>>
>>>>             Le 24 avr. 2016 à 17:14, Cohen, Laurence
>>>>>             <lcohen@novetta.com <ma...@novetta.com>> a écrit :
>>>>>
>>>>>             Hi,
>>>>>
>>>>>             I need to increase my httpd server's MaxClients and
>>>>>             ServerLimit.  Can I just do a
>>>>>
>>>>>             service httpd reload
>>>>>
>>>>>             to load the new settings?
>>>>>
>>>>>             Or do I need to do a
>>>>>
>>>>>             service httpd restart
>>>>>
>>>>>             to load the new settings?
>>>>>
>>>>>             This is on a production server with active users, so
>>>>>             obviously the former is preferable.
>>>>>
>>>>>             Thanks,
>>>>>
>>>>>             Larry Cohen
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>         --
>>>>         www.novetta.com
>>>>         Larry Cohen
>>>>         System Administrator
>>>>
>>>>         12021 Sunset Hills Road, Suite 400
>>>>         Reston, VA 20190
>>>>         Email lcohen@novetta.com <http://novetta.com/>
>>>>         Office 703-885-1064
>>>>
>>>>
>>>
>>>
>>>
>>>     --
>>>     www.novetta.com
>>>     Larry Cohen
>>>     System Administrator
>>>
>>>     12021 Sunset Hills Road, Suite 400
>>>     Reston, VA 20190
>>>     Email lcohen@novetta.com <http://novetta.com/>
>>>     Office 703-885-1064
>>>
>>>
>>
>>
>>
>> --
>>
>> www.novetta.com
>>
>> Larry Cohen
>>
>> System Administrator
>>
>>
>> 12021 Sunset Hills Road, Suite 400
>>
>> Reston, VA 20190
>>
>> Email lcohen@novetta.com <http://novetta.com>
>>
>> Office 703-885-1064
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 

[image: www.novetta.com]

Larry Cohen

System Administrator


12021 Sunset Hills Road, Suite 400

Reston, VA 20190

Email  lcohen@novetta.com

Office  703-885-1064

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by Rainer Jung <ra...@kippdata.de>.
ServerLimit and ThreadLimit configure the size of an internal structure 
which maintains data about processes and threads. This structure is only 
created during Apache start, so if you want to change these two params, 
you need to stop and start.

ThreadsPerChild and MaxClients can be changed and activates with 
"apachectl graceful", no need to restart. Only if ThreadsPerChild needs 
to get increased higher than ThreadLimit, or MaxClients/ThreadsPerChild 
needs to be increased higher than ServerLimit, you need to adjust these 
as well and therefore need a completely new start.

So if you want to reserve some reserve space for ThreadsPerChild or 
MaxClients, you should configure ThreadLimit = ThreadsPerChild + 
"reserved additional threads" and ServerLimit = 
MaxClients/ThreadsPerChild + "reserved additional clients"/ThreadsPerChild.

HTH,

Rainer

Am 24.04.2016 um 21:28 schrieb Cohen, Laurence:
> Thanks,
>
> I should have mentioned that I'm running Apache HTTPD 2.2 on a RHEL6.7
> system.  There it is tied to MaxClients which is getting changed at
> restart.  I believe, according to this that I need to do a full stop and
> start to get this to work.
>
> Thanks for your help!
>
> Larry
>
> On Sun, Apr 24, 2016 at 3:22 PM, Ben RUBSON <ben.rubson@gmail.com
> <ma...@gmail.com>> wrote:
>
>     https://httpd.apache.org/docs/current/en/mod/mpm_common.html#serverlimit
>
>>     Le 24 avr. 2016 à 21:20, Cohen, Laurence <lcohen@novetta.com
>>     <ma...@novetta.com>> a écrit :
>>
>>     Thank you!  Which doc are you reading?  I'd like to look at it.
>>
>>     On Sun, Apr 24, 2016 at 3:08 PM, Ben RUBSON <ben.rubson@gmail.com
>>     <ma...@gmail.com>> wrote:
>>
>>         Reading the doc, seems that ServerLimit is related to
>>         MaxRequestWorkers (which has a default set to 256).
>>
>>         Ben
>>
>>
>>
>>>         Le 24 avr. 2016 à 20:52, Cohen, Laurence <lcohen@novetta.com
>>>         <ma...@novetta.com>> a écrit :
>>>
>>>         Hello,
>>>
>>>         While reloading httpd did increase MaxClients to 400 as
>>>         specified, it did not increase ServerLimit to 400 as
>>>         specified.  What is worse is that since ServerLimit remained
>>>         at 256, this caused MaxClients to be reduced to 256 since
>>>         ServerLimit seems to be the hard limit for MaxClients.
>>>
>>>         Even more frustrating is that when I did a service httpd
>>>         restart, it not only did not increase ServerLimit to 400, but
>>>         it threw an error that the attempt to increase ServerLimit
>>>         during a restart was ignored.
>>>
>>>         Any ideas why I cannot increase the ServerLimit?
>>>
>>>         Thanks,
>>>
>>>         Laurence Cohen
>>>
>>>         On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON
>>>         <ben.rubson@gmail.com <ma...@gmail.com>> wrote:
>>>
>>>             Hi,
>>>
>>>             reload will do it !
>>>
>>>             Ben
>>>
>>>
>>>>             Le 24 avr. 2016 à 17:14, Cohen, Laurence
>>>>             <lcohen@novetta.com <ma...@novetta.com>> a écrit :
>>>>
>>>>             Hi,
>>>>
>>>>             I need to increase my httpd server's MaxClients and
>>>>             ServerLimit.  Can I just do a
>>>>
>>>>             service httpd reload
>>>>
>>>>             to load the new settings?
>>>>
>>>>             Or do I need to do a
>>>>
>>>>             service httpd restart
>>>>
>>>>             to load the new settings?
>>>>
>>>>             This is on a production server with active users, so
>>>>             obviously the former is preferable.
>>>>
>>>>             Thanks,
>>>>
>>>>             Larry Cohen
>>>>
>>>
>>>
>>>
>>>
>>>         --
>>>         www.novetta.com
>>>         Larry Cohen
>>>         System Administrator
>>>
>>>         12021 Sunset Hills Road, Suite 400
>>>         Reston, VA 20190
>>>         Email lcohen@novetta.com <http://novetta.com/>
>>>         Office 703-885-1064
>>>
>>
>>
>>
>>
>>     --
>>     www.novetta.com
>>     Larry Cohen
>>     System Administrator
>>
>>     12021 Sunset Hills Road, Suite 400
>>     Reston, VA 20190
>>     Email lcohen@novetta.com <http://novetta.com/>
>>     Office 703-885-1064
>>
>
>
>
>
> --
>
> www.novetta.com
>
> Larry Cohen
>
> System Administrator
>
>
> 12021 Sunset Hills Road, Suite 400
>
> Reston, VA 20190
>
> Email lcohen@novetta.com <http://novetta.com>
>
> Office 703-885-1064

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by "Cohen, Laurence" <lc...@novetta.com>.
Thanks,

I should have mentioned that I'm running Apache HTTPD 2.2 on a RHEL6.7
system.  There it is tied to MaxClients which is getting changed at
restart.  I believe, according to this that I need to do a full stop and
start to get this to work.

Thanks for your help!

Larry

On Sun, Apr 24, 2016 at 3:22 PM, Ben RUBSON <be...@gmail.com> wrote:

> https://httpd.apache.org/docs/current/en/mod/mpm_common.html#serverlimit
>
> Le 24 avr. 2016 à 21:20, Cohen, Laurence <lc...@novetta.com> a écrit :
>
> Thank you!  Which doc are you reading?  I'd like to look at it.
>
> On Sun, Apr 24, 2016 at 3:08 PM, Ben RUBSON <be...@gmail.com> wrote:
>
>> Reading the doc, seems that ServerLimit is related to MaxRequestWorkers
>> (which has a default set to 256).
>>
>> Ben
>>
>>
>>
>> Le 24 avr. 2016 à 20:52, Cohen, Laurence <lc...@novetta.com> a écrit :
>>
>> Hello,
>>
>> While reloading httpd did increase MaxClients to 400 as specified, it did
>> not increase ServerLimit to 400 as specified.  What is worse is that since
>> ServerLimit remained at 256, this caused MaxClients to be reduced to 256
>> since ServerLimit seems to be the hard limit for MaxClients.
>>
>> Even more frustrating is that when I did a service httpd restart, it not
>> only did not increase ServerLimit to 400, but it threw an error that the
>> attempt to increase ServerLimit during a restart was ignored.
>>
>> Any ideas why I cannot increase the ServerLimit?
>>
>> Thanks,
>>
>> Laurence Cohen
>>
>> On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON <be...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> reload will do it !
>>>
>>> Ben
>>>
>>>
>>> Le 24 avr. 2016 à 17:14, Cohen, Laurence <lc...@novetta.com> a écrit :
>>>
>>> Hi,
>>>
>>> I need to increase my httpd server's MaxClients and ServerLimit.  Can I
>>> just do a
>>>
>>> service httpd reload
>>>
>>> to load the new settings?
>>>
>>> Or do I need to do a
>>>
>>> service httpd restart
>>>
>>> to load the new settings?
>>>
>>> This is on a production server with active users, so obviously the
>>> former is preferable.
>>>
>>> Thanks,
>>>
>>> Larry Cohen
>>>
>>>
>>>
>>
>>
>> --
>> [image: www.novetta.com]
>> Larry Cohen
>> System Administrator
>>
>> 12021 Sunset Hills Road, Suite 400
>> Reston, VA 20190
>> Email  lcohen@novetta.com
>> Office  703-885-1064
>>
>>
>>
>
>
> --
> [image: www.novetta.com]
> Larry Cohen
> System Administrator
>
> 12021 Sunset Hills Road, Suite 400
> Reston, VA 20190
> Email  lcohen@novetta.com
> Office  703-885-1064
>
>
>


-- 

[image: www.novetta.com]

Larry Cohen

System Administrator


12021 Sunset Hills Road, Suite 400

Reston, VA 20190

Email  lcohen@novetta.com

Office  703-885-1064

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by Ben RUBSON <be...@gmail.com>.
https://httpd.apache.org/docs/current/en/mod/mpm_common.html#serverlimit <https://httpd.apache.org/docs/current/en/mod/mpm_common.html#serverlimit>

> Le 24 avr. 2016 à 21:20, Cohen, Laurence <lc...@novetta.com> a écrit :
> 
> Thank you!  Which doc are you reading?  I'd like to look at it.
> 
> On Sun, Apr 24, 2016 at 3:08 PM, Ben RUBSON <ben.rubson@gmail.com <ma...@gmail.com>> wrote:
> Reading the doc, seems that ServerLimit is related to MaxRequestWorkers (which has a default set to 256).
> 
> Ben
> 
> 
> 
>> Le 24 avr. 2016 à 20:52, Cohen, Laurence <lcohen@novetta.com <ma...@novetta.com>> a écrit :
>> 
>> Hello,
>> 
>> While reloading httpd did increase MaxClients to 400 as specified, it did not increase ServerLimit to 400 as specified.  What is worse is that since ServerLimit remained at 256, this caused MaxClients to be reduced to 256 since ServerLimit seems to be the hard limit for MaxClients.
>> 
>> Even more frustrating is that when I did a service httpd restart, it not only did not increase ServerLimit to 400, but it threw an error that the attempt to increase ServerLimit during a restart was ignored.
>> 
>> Any ideas why I cannot increase the ServerLimit?
>> 
>> Thanks,
>> 
>> Laurence Cohen
>> 
>> On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON <ben.rubson@gmail.com <ma...@gmail.com>> wrote:
>> Hi,
>> 
>> reload will do it !
>> 
>> Ben
>> 
>> 
>>> Le 24 avr. 2016 à 17:14, Cohen, Laurence <lcohen@novetta.com <ma...@novetta.com>> a écrit :
>>> 
>>> Hi,
>>> 
>>> I need to increase my httpd server's MaxClients and ServerLimit.  Can I just do a
>>> 
>>> service httpd reload
>>> 
>>> to load the new settings?
>>> 
>>> Or do I need to do a
>>> 
>>> service httpd restart
>>> 
>>> to load the new settings?
>>> 
>>> This is on a production server with active users, so obviously the former is preferable.
>>> 
>>> Thanks,
>>> 
>>> Larry Cohen
>>> 
>> 
>> 
>> 
>> 
>> -- 
>> 
>> Larry Cohen
>> System Administrator
>> 
>> 12021 Sunset Hills Road, Suite 400
>> Reston, VA 20190
>> Email  lcohen@novetta.com <http://novetta.com/> 
>> Office  703-885-1064
> 
> 
> 
> 
> -- 
> 
> Larry Cohen
> System Administrator
> 
> 12021 Sunset Hills Road, Suite 400
> Reston, VA 20190
> Email  lcohen@novetta.com <http://novetta.com/> 
> Office  703-885-1064


Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by "Cohen, Laurence" <lc...@novetta.com>.
Thank you!  Which doc are you reading?  I'd like to look at it.

On Sun, Apr 24, 2016 at 3:08 PM, Ben RUBSON <be...@gmail.com> wrote:

> Reading the doc, seems that ServerLimit is related to MaxRequestWorkers
> (which has a default set to 256).
>
> Ben
>
>
>
> Le 24 avr. 2016 à 20:52, Cohen, Laurence <lc...@novetta.com> a écrit :
>
> Hello,
>
> While reloading httpd did increase MaxClients to 400 as specified, it did
> not increase ServerLimit to 400 as specified.  What is worse is that since
> ServerLimit remained at 256, this caused MaxClients to be reduced to 256
> since ServerLimit seems to be the hard limit for MaxClients.
>
> Even more frustrating is that when I did a service httpd restart, it not
> only did not increase ServerLimit to 400, but it threw an error that the
> attempt to increase ServerLimit during a restart was ignored.
>
> Any ideas why I cannot increase the ServerLimit?
>
> Thanks,
>
> Laurence Cohen
>
> On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON <be...@gmail.com> wrote:
>
>> Hi,
>>
>> reload will do it !
>>
>> Ben
>>
>>
>> Le 24 avr. 2016 à 17:14, Cohen, Laurence <lc...@novetta.com> a écrit :
>>
>> Hi,
>>
>> I need to increase my httpd server's MaxClients and ServerLimit.  Can I
>> just do a
>>
>> service httpd reload
>>
>> to load the new settings?
>>
>> Or do I need to do a
>>
>> service httpd restart
>>
>> to load the new settings?
>>
>> This is on a production server with active users, so obviously the former
>> is preferable.
>>
>> Thanks,
>>
>> Larry Cohen
>>
>>
>>
>
>
> --
> [image: www.novetta.com]
> Larry Cohen
> System Administrator
>
> 12021 Sunset Hills Road, Suite 400
> Reston, VA 20190
> Email  lcohen@novetta.com
> Office  703-885-1064
>
>
>


-- 

[image: www.novetta.com]

Larry Cohen

System Administrator


12021 Sunset Hills Road, Suite 400

Reston, VA 20190

Email  lcohen@novetta.com

Office  703-885-1064

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by Ben RUBSON <be...@gmail.com>.
Reading the doc, seems that ServerLimit is related to MaxRequestWorkers (which has a default set to 256).

Ben



> Le 24 avr. 2016 à 20:52, Cohen, Laurence <lc...@novetta.com> a écrit :
> 
> Hello,
> 
> While reloading httpd did increase MaxClients to 400 as specified, it did not increase ServerLimit to 400 as specified.  What is worse is that since ServerLimit remained at 256, this caused MaxClients to be reduced to 256 since ServerLimit seems to be the hard limit for MaxClients.
> 
> Even more frustrating is that when I did a service httpd restart, it not only did not increase ServerLimit to 400, but it threw an error that the attempt to increase ServerLimit during a restart was ignored.
> 
> Any ideas why I cannot increase the ServerLimit?
> 
> Thanks,
> 
> Laurence Cohen
> 
> On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON <ben.rubson@gmail.com <ma...@gmail.com>> wrote:
> Hi,
> 
> reload will do it !
> 
> Ben
> 
> 
>> Le 24 avr. 2016 à 17:14, Cohen, Laurence <lcohen@novetta.com <ma...@novetta.com>> a écrit :
>> 
>> Hi,
>> 
>> I need to increase my httpd server's MaxClients and ServerLimit.  Can I just do a
>> 
>> service httpd reload
>> 
>> to load the new settings?
>> 
>> Or do I need to do a
>> 
>> service httpd restart
>> 
>> to load the new settings?
>> 
>> This is on a production server with active users, so obviously the former is preferable.
>> 
>> Thanks,
>> 
>> Larry Cohen
>> 
> 
> 
> 
> 
> -- 
> 
> Larry Cohen
> System Administrator
> 
> 12021 Sunset Hills Road, Suite 400
> Reston, VA 20190
> Email  lcohen@novetta.com <http://novetta.com/> 
> Office  703-885-1064


Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by "Cohen, Laurence" <lc...@novetta.com>.
Hello,

While reloading httpd did increase MaxClients to 400 as specified, it did
not increase ServerLimit to 400 as specified.  What is worse is that since
ServerLimit remained at 256, this caused MaxClients to be reduced to 256
since ServerLimit seems to be the hard limit for MaxClients.

Even more frustrating is that when I did a service httpd restart, it not
only did not increase ServerLimit to 400, but it threw an error that the
attempt to increase ServerLimit during a restart was ignored.

Any ideas why I cannot increase the ServerLimit?

Thanks,

Laurence Cohen

On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON <be...@gmail.com> wrote:

> Hi,
>
> reload will do it !
>
> Ben
>
>
> Le 24 avr. 2016 à 17:14, Cohen, Laurence <lc...@novetta.com> a écrit :
>
> Hi,
>
> I need to increase my httpd server's MaxClients and ServerLimit.  Can I
> just do a
>
> service httpd reload
>
> to load the new settings?
>
> Or do I need to do a
>
> service httpd restart
>
> to load the new settings?
>
> This is on a production server with active users, so obviously the former
> is preferable.
>
> Thanks,
>
> Larry Cohen
>
>
>


-- 

[image: www.novetta.com]

Larry Cohen

System Administrator


12021 Sunset Hills Road, Suite 400

Reston, VA 20190

Email  lcohen@novetta.com

Office  703-885-1064

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by "Cohen, Laurence" <lc...@novetta.com>.
Thank you for the quick response!

Larry

On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON <be...@gmail.com> wrote:

> Hi,
>
> reload will do it !
>
> Ben
>
>
> Le 24 avr. 2016 à 17:14, Cohen, Laurence <lc...@novetta.com> a écrit :
>
> Hi,
>
> I need to increase my httpd server's MaxClients and ServerLimit.  Can I
> just do a
>
> service httpd reload
>
> to load the new settings?
>
> Or do I need to do a
>
> service httpd restart
>
> to load the new settings?
>
> This is on a production server with active users, so obviously the former
> is preferable.
>
> Thanks,
>
> Larry Cohen
>
>
>


-- 

[image: www.novetta.com]

Larry Cohen

System Administrator


12021 Sunset Hills Road, Suite 400

Reston, VA 20190

Email  lcohen@novetta.com

Office  703-885-1064

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

Posted by Ben RUBSON <be...@gmail.com>.
Hi,

reload will do it !

Ben


> Le 24 avr. 2016 à 17:14, Cohen, Laurence <lc...@novetta.com> a écrit :
> 
> Hi,
> 
> I need to increase my httpd server's MaxClients and ServerLimit.  Can I just do a
> 
> service httpd reload
> 
> to load the new settings?
> 
> Or do I need to do a
> 
> service httpd restart
> 
> to load the new settings?
> 
> This is on a production server with active users, so obviously the former is preferable.
> 
> Thanks,
> 
> Larry Cohen
>