WEB Apache working only with 128 requests but MaxClients is set to 225?

Discussion in 'OT Technology' started by Drowned, Jan 11, 2009.

  1. Drowned

    Drowned NameThatPornstar.com

    Joined:
    Mar 26, 2001
    Messages:
    8,534
    Likes Received:
    2
    I just got a new server but for some reason I'm not able to make it accept more than 128 connections, requests, whatever they're called. I've tried EVERYTHING google tells me but it'll apache(2) simply ignores my MaxClients setting... well, it's not actually ignoring it but leaving lots of open slots and only handling 128 connections all the time.

    This is how my status looks like all the time :ugh:
    Code:
    WWWCCKKCKKKCKKCKKCCCWCCCKKCWKKKCWKCWCKWWWWCCCKWCKKCKWKKCKCKKKCKK
    CCWWWKCKCWCCWWWKKCCKKCWKWKWKKKWWWWKWWCKWKCWWKKWWKKWKWCCCKWWKCWCK
    ................................................................
    ........
    I have thousands of requests being put on hold although apache still has more than 100 open slots?! :eek: Why would this happen? I have over 2GB of free ram and the cpu is almost idling (load 0.20) with just 128 connections :confused:
     
    Last edited: Jan 11, 2009
  2. Half-Time

    Half-Time OT Supporter

    Joined:
    Mar 21, 2007
    Messages:
    6,460
    Likes Received:
    0
    Location:
    Houston
    What is your setup? cPanel on CentOS? Version of Apache?
     
  3. trev.the.enemy

    trev.the.enemy New Member

    Joined:
    Jun 26, 2006
    Messages:
    10,939
    Likes Received:
    0
    Location:
    Midwest
    PM me your httpd.conf :o

    or post it here.
     
  4. Drowned

    Drowned NameThatPornstar.com

    Joined:
    Mar 26, 2001
    Messages:
    8,534
    Likes Received:
    2
    Yes, Cpanel on Centos 5
    Apache 2.2.11
     
  5. Drowned

    Drowned NameThatPornstar.com

    Joined:
    Mar 26, 2001
    Messages:
    8,534
    Likes Received:
    2
    Code:
    KeepAlive On
    MaxKeepAliveRequests 500
    KeepAliveTimeout 2
    Timeout 30
    
    <IfModule prefork.c>
    StartServers      10
    MinSpareServers   10
    MaxSpareServers   25
    ServerLimit      225
    MaxClients       225
    MaxRequestsPerChild  500
    </IfModule>
    
    <IfModule mpm_prefork_module>
        ServerLimit          225
        StartServers         10
        MinSpareServers      10
        MaxSpareServers      25
        MaxClients          225
        MaxRequestsPerChild 1000
    </IfModule>
    
    
    I can't find any info on any httpd value that would limit maxclients and serverlimit :sadwavey: I even looked into net.core.somaxconn but nothing, it's set at 1024
     
  6. Karnejj

    Karnejj “A true conservative is one who can't see any diff OT Supporter

    Joined:
    Jan 9, 2008
    Messages:
    35,585
    Likes Received:
    0
    Location:
    UPGRADED USA Shutdown Today:8 derps
    Is it some sort of home setup?
     
  7. Drowned

    Drowned NameThatPornstar.com

    Joined:
    Mar 26, 2001
    Messages:
    8,534
    Likes Received:
    2
    Nope, dedicated server on a host...
     
  8. Drowned

    Drowned NameThatPornstar.com

    Joined:
    Mar 26, 2001
    Messages:
    8,534
    Likes Received:
    2
    In case this happens to you, mod_proxy was the one at fault. It was giving me segmentation fault errors and killing the extra connections. I simply compiled apache without it and everything went back to normal :)
     
  9. vincentfasho

    vincentfasho New Member

    Joined:
    Jun 17, 2004
    Messages:
    1,322
    Likes Received:
    0
    Location:
    Houston
    easyapache?
     
  10. thomor25

    thomor25 I make money online....

    Joined:
    Jun 11, 2000
    Messages:
    11,101
    Likes Received:
    0
    Location:
    Denver Colorado
    try that
     
  11. Drowned

    Drowned NameThatPornstar.com

    Joined:
    Mar 26, 2001
    Messages:
    8,534
    Likes Received:
    2
    Wow... :bowdown: Huge speed increase! My site is getting hammered with tons of new traffic and this made a big difference :) Thanks!
     
  12. trev.the.enemy

    trev.the.enemy New Member

    Joined:
    Jun 26, 2006
    Messages:
    10,939
    Likes Received:
    0
    Location:
    Midwest
    I've been randomly promoting your site out of boredom a bit, fyi. :o
     
  13. Drowned

    Drowned NameThatPornstar.com

    Joined:
    Mar 26, 2001
    Messages:
    8,534
    Likes Received:
    2
    Really? how? :kiss:
     

Share This Page