[WTH] Need Help with apache problems - Need Max Clients Raised, Stuck at 256

Discussion in 'Services' started by fattwam, Mar 16, 2010.

  1. #1
    Removed
     
    Last edited: Mar 16, 2015
    fattwam, Mar 16, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    PM sent requesting more information.
     
    RHS-Chris, Mar 16, 2010 IP
  3. nura235

    nura235 Well-Known Member

    Messages:
    529
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    just use below setting on your conf file. and restart apache.


    # allow a max of 500 clients at any given time
    MaxClients 500
     
    nura235, Mar 16, 2010 IP
  4. fattwam

    fattwam Well-Known Member

    Messages:
    230
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    I do i go into the config file and change it, but if i go to check apache setting in WHM it still says 256 and give me this message if i try to increase.

    Thanks for answeres, Please still need help.
     
    fattwam, Mar 16, 2010 IP
  5. fierceservers

    fierceservers Peon

    Messages:
    338
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    fierceservers, Mar 16, 2010 IP
  6. fattwam

    fattwam Well-Known Member

    Messages:
    230
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    I have.
    In the config file i have this set

    Then i save that and restart apache though WHM, After that i look at the apache config in WHM and its still at 256 while the config file is still at 500, i Dont get this at all.
    This is the first time this has happend to me, The server is used for web based proxies and i have heard older version of apache would work better for me (Apache 1.3 to be exact).
    This has just all happend cause i had a major server crash then apache recompiled itself and then update to latest version.
     
    fattwam, Mar 16, 2010 IP
  7. fierceservers

    fierceservers Peon

    Messages:
    338
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    I hope you are aware that Apache2 at least has a MaxClients default value of 256 hard coded at compile time? You'll have to recompile Apache with a new limit, otherwise changing those values does nothing different.
     
    fierceservers, Mar 17, 2010 IP
  8. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    The MaxClient value can be raised beyond 256 without recompiling. You must also raise the ServerLimit value. For example:

    ServerLimit 1000
    MaxClients 500

    One thing to note, in order for the ServerLimit value to take effect, a complete stop and start is needed for Apache, a restart will not change this value. From shell:

    service httpd stop

    Wait a few seconds for a processes to die nicely, then:

    servive httpd start

    You can also enable the server-info and server-status pages within WHM so that you can view the actual settings through your browser.
     
    RHS-Chris, Mar 17, 2010 IP