Finding out what php scripts might be run by Apache Child Process
Hi All,
I'm looking to try and find out somehow what PHP scripts/code might be getting executed by an currently running and never ending apache child processes.
I can see some CHILD Apache PIDs that have stayed in a never ending state working on the same request. Using lsof -p {pid} I can see the file descriptors open and the fact its got stuck waiting on a connection the PHP has opened too an external IPv4 resource, however listed in the fd of lsof doesn't tell me the PHP script that are actually open and being executed.
Looking at /proc/[PID] of the apache child processes again, hoping to try and find something and I've found nothing particularly useful to what I need in there either.
I've connected to the PID with full strace -ttt -s0 -p [PID] and again i can see it looping on asking for the time which is fine, but still not helping me find out what actual piece of PHP might be running still within the child PID.
I can't really think of anything else, I could try tcpdump and listening in on the established connection it still has open with the external web resources, but I will assume that its going to tell me nothing again about the PHP script itself. I know i can clear the build up of child processes simply by restarting apache daemon. However I'd prefer to try and find out what / where the problem is being caused first.
Any ideas anyone further to what i've already tried?
Thanks for any help,
Best,
EDIT: Its Debian Linux, Apache2.4.x using mod_php
Last edited by helptonewbie; 07-13-2012 at 09:48 AM.
|