Lots of hanging Apache processes

Gareth-AWD

Well-Known Member
Jul 3, 2008
191
7
68
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.
 

Gareth-AWD

Well-Known Member
Jul 3, 2008
191
7
68
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
 
Last edited by a moderator:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,126
667
263
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.
 

Gareth-AWD

Well-Known Member
Jul 3, 2008
191
7
68
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.