[Sussex] PHP process hogging the CPU

Mark Harrison (Groups) mph at ascentium.co.uk
Sat Aug 13 09:52:32 UTC 2005


Brendan

	ps -aux

will list all processes, including CPU% (normally the third column.)

The first column is process name, the second is process ID.

So a column like:

mybrokenloop 13753 95.5 2.0 etc.etc.etc.

is what you're looking for.

Having got the process ID, you kill it with:

	kill -9 13753 

M.


On Fri, 2005-08-12 at 09:57 +0100, Brendan Whelan wrote:
> Hello,
>  
> I have a PHP process which is probably in an endless loop. I have
> re-booted the system the process still continues. How can I find and
> stop the process which is hogging the time? (I have a long default php
> timeout set because, on occasions, some process need to run for an
> extended time. However, I will set the maximum time which each program
> can run on an individual basis.)
>  
> Thanks,  Brendan
>  
> _______________________________________________
> Sussex mailing list
> Sussex at mailman.lug.org.uk
> Sussex LUG Website: http://www.sussex.lug.org.uk/
> http://mailman.lug.org.uk/mailman/listinfo/sussex





More information about the Sussex mailing list