Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Apache HTTPD very slow

Discussion in 'EasyApache' started by Mugoma, Sep 13, 2016.

  1. Mugoma

    Mugoma Well-Known Member

    Joined:
    Aug 1, 2016
    Messages:
    74
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Nairobi
    cPanel Access Level:
    Root Administrator
    We have been running cPanel for several months without a problem.

    But today we received complains from users about sites being slow to access.

    Later we also a notification from cPanel titled "FAILED ⛔: httpd"

    We restarted Apache and everything normalised.

    But about half an hour later the sites became slow again. However, this time restarting Apache didn't help.

    We have restarted Apache several times now but situation is not improving.

    What could be causing this?
     
  2. Mugoma

    Mugoma Well-Known Member

    Joined:
    Aug 1, 2016
    Messages:
    74
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Nairobi
    cPanel Access Level:
    Root Administrator
    Not sure what the problem was but Apache is now responding.

    But it might be good to get an explanation, if there's one, for such behaviour.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,789
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice any particular entries in /usr/local/apache/logs/error_log at the time this happened?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    555
    Likes Received:
    16
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Twitter:
    Take a look through the logs as Michael mentioned. Look for restarts. This will help you identify the issue.
    Also, it might be worth trying out litespeed which will handle things a great deal smoother if this is a repeated issue. You can get a trial from them from their site directly, and it's a simple install for cPanel :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. NOC_Serverpoint

    NOC_Serverpoint Well-Known Member

    Joined:
    Jul 3, 2016
    Messages:
    102
    Likes Received:
    6
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Next time it happens, check the number of connections to your server too.

    netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1

    Show and list IP address and its connection count that connect to port 80 on the server.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice