Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jan 2010
    Posts
    52

    Default Apache MaxClients

    Dear all,

    I wanted to increase my Apache's MaxClient.
    In Service Configuration >> Apache Configuration >> Global Configuration said that "This interface allows up to the default of 256.". From what I read, I need to increase Apache's ServerLimit.
    Because I can't find it at Global Configuration, I opened my httpd.conf using ssh, and added
    Code:
    ServerLimit 512
    and change
    Code:
    MaxClients 512
    than restart my Apache service.

    My question is:
    1. Will this works?
    2. When I look at WHM Apache Global Configuration, I still see 256 as my MaxClients instead of 512 as I expected. Why is that so?
    3. We have a quad core processor and 8GB RAM, and currently the machine is just sitting there with no heavy processes. Any idea how much MaxClients that my machine can afford? Because all this time the one that peak out is our MaxClients.

    Any ideas appreciated.

    Regards,

    YoChan

  2. #2
    Member arunsv84's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    129
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Please refer the following url.

    http://forums.cpanel.net/f5/increasi...mit-95817.html

    If you still face any problem please wait for cPanel developers reply.

  3. #3
    Member
    Join Date
    Jan 2010
    Posts
    52

    Default

    @arunsv84
    Thanks for your reply

    Quote Originally Posted by trhosting.net View Post
    ServerLimit works if you set it from WHM.
    But not works if you set it from config files.

    You can set it from Apache Configuration -> Include Editor

    Write your configuration to Pre Main Include field.
    This works
    I've add
    Code:
    ServerLimit 512
    in Pre Main Include section for Apache 2.2.16 which I use. But still when I want to edit Apache Global Configuration, I still see this note:
    Code:
    This interface allows up to the default of 256.
    and when I change the MaxClients to 512, I get this red warning:

    Code:
    Value (512) is over the limit (256), using previously saved value (if any) or default (150)
    and my maxclients was reset back to 256...

    Did I missed anything?

  4. #4
    Member
    Join Date
    Jan 2010
    Posts
    52

    Default

    any ideas????

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    In your WHM > Service Configuration > Apache Configuration > Global Configuration you'll find some settings you may be interested in.
    (That thread linked above here is out of date)
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  6. #6
    Member
    Join Date
    Jan 2010
    Posts
    52

    Default

    Quote Originally Posted by Infopro View Post
    In your WHM > Service Configuration > Apache Configuration > Global Configuration you'll find some settings you may be interested in.
    (That thread linked above here is out of date)
    Yes, there are some settings, but still no answer for my question.......

  7. #7
    Member
    Join Date
    May 2006
    Posts
    43
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by yoachan View Post
    Yes, there are some settings, but still no answer for my question.......
    For Apache 2:

    Modify /usr/local/apache/conf/includes/pre_virtualhost_global.conf
    and add these lines:

    ServerLimit 2048
    MaxClients 2048

    and then restart Apache.

    This is to set it to 2048, ofcourse you can modify it to whatever you want.
    For Apache 1.3 just modify httpd.conf's MaxClients setting.

  8. #8
    whr
    whr is offline
    Member
    Join Date
    Jul 2009
    Location
    India
    Posts
    21

    Default

    Try the below syntax in httpd.conf file:

    <IfModule prefork.c>
    ServerLimit 512
    MaxClients 512
    </IfModule>


    Save and quit httpd.conf

    Then run the Apache distiller

    /usr/local/cpanel/bin/apache_conf_distiller --update
    WebHostRepo:: The Ultimate Support Repository
    Official Site: http://www.webhostrepo.com
    Official Blog: http://webhostrepo.com/blog/

Similar Threads & Tags
Similar threads

  1. How can I increase MaxClients in apache 2?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-28-2008, 02:42 AM
  2. Apache 2 - MaxClients
    By stephenbrown in forum New User Questions
    Replies: 7
    Last Post: 08-02-2008, 10:59 AM
  3. apache maxclients
    By stugs in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-30-2008, 04:59 PM
  4. Apache MaxClients...hacked ?
    By vishal in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-20-2003, 06:12 PM
  5. Apache and MaxClients
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-03-2003, 12:45 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube