Page 1 of 1

Excessive resource usage for PHP - how to check which PHP try to execute?

Posted: 31 Aug 2016, 17:47
by ronaldoluiz
I'm getting the message of "excessive resource" for a PHP,

The server has cPanel and I can't identify which PHP script are exhausting the resources. There are a way to know? If so, how can I find it?

Time: Wed Aug 31 12:04:06 2016 -0300
Account: xxx
Resource: Process Time
Exceeded: 1806 > 1800 (seconds)
Executable: /usr/bin/php
Command Line: /usr/bin/php
PID: 22384 (Parent PID:14269)
Killed: No

Thanks for any help.

Re: Excessive resource usage for PHP - how to check which PHP try to execute?

Posted: 06 Sep 2016, 15:37
by babenito
Take a look at the PID. In this case you should have run:

ps aux | grep 22384
ps aux | grep 14269

That may give you some information. Of course those commands probably won't return anything useful now, because a few days have passed and the PIDs are probably different.

Good luck!

Re: Excessive resource usage for PHP - how to check which PHP try to execute?

Posted: 11 Sep 2016, 03:36
by Sergio
Add the following line to your csf.pignore:
exe:/usr/bin/php