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!

Lots of hanging Apache processes

Discussion in 'EasyApache' started by Gareth-AWD, Aug 30, 2018.

  1. Gareth-AWD

    Gareth-AWD Well-Known Member

    Joined:
    Jul 3, 2008
    Messages:
    174
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    London, UK
    cPanel Access Level:
    Root Administrator
    Our server load for one of our servers has gone through the roof. If I restart Apache it calms down for 2-3 hours and then comes back again.

    If I look at the apache process I can see they are all "W" Sending Reply.

    The sites are completely random so it's not a bad script I don't think it looks like an attack so not sure why it's doing this.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,679
    Likes Received:
    183
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Gareth-AWD

    Gareth-AWD Well-Known Member

    Joined:
    Jul 3, 2008
    Messages:
    174
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    London, UK
    cPanel Access Level:
    Root Administrator
    Trouble is, it's not a load issue but more the fact Apache should be killing these processes.

    Please see the screenshots. The W blocks all seem to be be together. These processes are all finished, they aren't doing anything.

    preview.ibb.co/m89Sh9/process_tree.jpg

    image.ibb.co/hfypUp/apache_process.jpg
     
    #3 Gareth-AWD, Sep 12, 2018
    Last edited by a moderator: Sep 12, 2018
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,679
    Likes Received:
    183
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Gareth-AWD

    Ultimately it would be considered a load issue since load issues are always symptoms of something else which causes the high load.

    What is the output of:

    Code:
    apachectl status
    If you're seeing a lot of connections with w status my assumption would be that you have a script that isn't properly closing the connection or is getting stuck. You'll need to identify what specifically is being connected to when this is occurring.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Gareth-AWD

    Gareth-AWD Well-Known Member

    Joined:
    Jul 3, 2008
    Messages:
    174
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    London, UK
    cPanel Access Level:
    Root Administrator
    They are all different scripts. Some our developed by us and some are popular off the shelf platforms. It's completely random sites which leads me to believe it's an issue with the server setup rather than the scripts.

    Our other server doesn't have the issue at all. Apache is working but appears to be busy.

    I've adjusted the PHP timeouts and I guess I'll see if it happens again.
     
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