help figuring which php script is endless looping
Posted by: brickballs
Posted on: 2006-06-14 06:13:00
ok, I have a dedicated server with a good number of websites on it. One of the users on my server has about a dozen sites. One of these sites has a php script that is getting in an endless loop, but I dont know which script.
If I log in through ssh right now and run top, I see about 10 copies of php5.cgi running under this user each with between 30 and 350 cpu minutes. and they all are taking between 5 and 10% cpu load.
Now I know how to kill a process, but what I dont know is how to determine which script it is running.
Is there an easy way to get a list of what files a given PID has open?
[+]brickballs