httpd taking too many process

Discussion in 'Apache' started by dheeraj4uuu, Jun 24, 2009.

  1. #1
    Hello,

    My site is taking too many process and hanging the system and the server load averages goes to 800-900 and at that time i was unable to login into my ssh and the only solution that i found to get back my server is asking my hosting company to reboot my server. I dont know what process is taking that many process...And this only happens at certain times and at all other times it seems ok....

    When the too many process are running i tried killing the process using
     killall httpd 
    Code (markup):
    But when i started the httpd process immediatly the load averages increases at peak like from 2.43 to 5.93 and then to 10.43 and then 15.32 like this it is increasing...

    I dont what is causing that problem....

    Here are my server details...

    I have Xenon Quad Core Server with 4 Gb ram and i get a lot of traffic daily about 30k uniques and mine database size is about 2.6GB running vbulletin..

    Can anyone tell me on how to trace the problem as it is chewing up my traffic...Please someone help me...
     
    dheeraj4uuu, Jun 24, 2009 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Sounds like you need some optimizing done. Do you run a mpm / worker for apache? What is the max clients for apache set at? Have to enabled caching? Have you tweaked your mysql config? Do you use a control panel as well? Tweaking is not just a one time thing, its constantly changing small things to make the server perform better.
     
    RHS-Chris, Jun 24, 2009 IP
  3. gavo

    gavo Active Member

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    70
    #3
    You can check the load using "top -" command.

    maybe its small ddos attacks, check you have iptables installed "service iptables status" and install an anti ddos script & edit the config file.

    wget http://www.inetbase.com/scripts/ddos/install.sh
    chmod 0700 install.sh
    ./install.sh
    Code (markup):
    Also check you not hitting the max allowed apache processes, but it may be a totally different problem
     
    gavo, Jun 25, 2009 IP
  4. holden30

    holden30 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    try "cpulimit"... available at sourceforge
     
    holden30, Jun 25, 2009 IP
  5. dheeraj4uuu

    dheeraj4uuu Member

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    Hello....Thanks for the replies...actually its not a DDOS attack and now iam trying cpulimit But i cant figure out whats the problem?? Can anyone suggest me how to detect the problem...
     
    dheeraj4uuu, Jun 27, 2009 IP