I often use the ‘top’ command to see what is taking up resources. Mostly it comes up with a long list of Apache httpd processes, which is not very useful. Is there any way to see a similar list, but such that I could see which PHP scripts etc. those httpd processes are actually running?
Share
If you’re concerned about long running processes (i.e. requests that take more than a second or two to execute), you’ll be able to get an idea of them using Apache’s mod_status. See the documentation, and an example of the output (from http://www.apache.org). This isn’t unique to PHP, but applies to anything running inside an apache process.
Note that the http://www.apache.org status output is publicly available presumably for demonstration purposes — you’d want to restrict access to yours so that not everyone can see it.