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.

Apache fails now and then...

Discussion in 'EasyApache' started by ArbuZz, Jul 13, 2007.

  1. ArbuZz

    ArbuZz Active Member

    Joined:
    Mar 27, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    I got an error "httpd on cPanel.email.ge failed" get mailed to my mailbox twice a day. And when I'm online I pretty often find that web-sites are not loading and http is just stuck. I cant find out what triggers the problem. There are no errors mentioned in log files and I'm not tough in that kind of stuff to find them myself :(

    Any help appreciated.
     
  2. koolcards

    koolcards Well-Known Member

    Joined:
    Oct 8, 2003
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Tampa, Fl
    If it's httpd processes 'hung' tying up apache resources until the server can no longer respond, then I've had it happen usually when a script is accessing a (often) too large MySql database. Too many requests to the database slows down MySql response which holds open the httpd process, etc, the more httpd processes held open, and so forth. There are no errors either so nothing is logged. When the problem happens, shut down apache and see if there are httpd processes still running. Look also then at the MySql processes as well.

    If that's the case, try editing your mysql /etc/my.cnf and increasing the amount of system memory allocated for the key, sort, read, and write buffers. Might want to increase the number of allowed connections from the default 100 to something more as well.
     
  3. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    Less likely, but I came across it earlier this week. If you have PRM installed, make sure it's configured not to kill root processes or httpd processes.
     
Loading...

Share This Page