PHP process not terminating (cPanel)

ffeingol

Well-Known Member
#1
Sorry if this has been discussed, but it's not easy to search for this one.

We have an on-going issue where PHP processes are getting hung and just run 'forever'. They are getting detached (i.e. the parent process is 1). Our max execution time is set to 30 seconds.

I know that this is more than likely a PHP coding related issue, but odd that the max execution time is not killing the process.

Any suggestions are greatly appreciated.
 

ffeingol

Well-Known Member
#3
It just does not seem to be working. I just checked one of our servers and Max Idle Time is on the default of 60 seconds. Here is a notice from LFD:

Account: ######
Resource: Process Time
Exceeded: 5449 > 1800 (seconds)
Executable: /opt/cpanel/ea-php7#/root/usr/bin/lsphp
Command Line: lsphp
PID: #### (Parent PID:#####)
Killed: No
While I have no way to check it, in 90 minutes, you'd think it would have been idle for more than 60 seconds. This site is also not that busy that it would have had constant traffic for 90 minutes.

Thanks again.
 

Pong

Administrator
Staff member
#4
We have seen such questions a few times, LSWS "Max Idle Time" should work. You can create a dummy/domain without any traffic(with only your test traffic), then you will know "Max Idle Time" work well as designed.
 
Top