The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

httpd crashes in load every now and then.

Discussion in 'General Discussion' started by ~*dream*~, Apr 19, 2007.

  1. ~*dream*~

    ~*dream*~ Member

    Joined:
    Nov 14, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I am using cpanel/whm on my personal dedicated server.

    Whenever i see a little peak the httpd crashes and websites stop working unless i restart httpd service.

    What should i do to make httpd crachproof, I know my server hardware/resources are capable to handle even double traffic then its facing now. Please suggest me what should i change.

    My key settings in httpd.conf looks like :
    Timeout 20
    KeepAlive Off
    MaxKeepAliveRequests 0
    KeepAliveTimeout 15
    MinSpareServers 5
    MaxSpareServers 10
    StartServers 5
    MaxClients 350
    MaxRequestsPerChild 1000


    Should I change MaxClients? or what?

    Please suggest, The server is not running any DB intensive website But simple php based websites with almost 4000 uniques a day.

    Thanks.
     
  2. beehave

    beehave Well-Known Member

    Joined:
    Jun 26, 2005
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    I use the following now and httpd loads are no longer a problem:

    Timeout 90
    KeepAlive Off
    MaxKeepAliveRequests 50
    KeepAliveTimeout 15
    MinSpareServers 5
    MaxSpareServers 10
    StartServers 5
    MaxClients 100
    MaxRequestsPerChild 5

    For some reason the follwing script I wrote to clean the httpd file really helped. I run it about once a month.

    http://systemabuse.com/scripts/httpdcleanup.txt

    Thread here:
    http://forums.cpanel.net/showthread.php?t=58376

    USE AT YOUR OWN RISK! It does make a backup however.
     
    #2 beehave, Apr 19, 2007
    Last edited: Apr 19, 2007
  3. Blaze_SCN

    Blaze_SCN Active Member

    Joined:
    Apr 14, 2007
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    This is what i use and my httpd is fast and stable.

    Timeout 15
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    MinSpareServers 2
    MaxSpareServers 15
    StartServers 2
    MaxClients 200
    MaxRequestsPerChild 10000
     
  4. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    You should check the log files for any errors leading to the crash:
    /usr/local/apache/logs/
    and
    /var/log/messages

    Just to mention a few, it might be corrupted module, or library; or your server comes under intermittent Syn/DDoS attack.
     
Loading...

Share This Page