Re: Restart or Reload after changing MaxClients and ServerLimit

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

 



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@xxxxxxxxx
<mailto:ben.rubson@xxxxxxxxx>> wrote:

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

    Le 24 avr. 2016 à 21:20, Cohen, Laurence <lcohen@xxxxxxxxxxx
    <mailto:lcohen@xxxxxxxxxxx>> 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@xxxxxxxxx
    <mailto:ben.rubson@xxxxxxxxx>> 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@xxxxxxxxxxx
        <mailto:lcohen@xxxxxxxxxxx>> 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@xxxxxxxxx <mailto:ben.rubson@xxxxxxxxx>> wrote:

            Hi,

            reload will do it !

            Ben


            Le 24 avr. 2016 à 17:14, Cohen, Laurence
            <lcohen@xxxxxxxxxxx <mailto:lcohen@xxxxxxxxxxx>> 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@xxxxxxxxxxx <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@xxxxxxxxxxx <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@xxxxxxxxxxx <http://novetta.com>

Office 703-885-1064

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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