How do I know what an apache process is doing?
Solution 1:
Make sure you have mod_status.so
loaded within your apache modules then look for/add the above to your httpd.conf:
# Uncomment the following lines to enable mod_status support:
#
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from YOUR_IP_HERE
</Location>
This will allow you to see all the pages being used load domain within your http server.
To access it use http://your_ip/server-status and only the ip defined at Allow from YOUR_IP_HERE
will be able to view it.
Solution 2:
An lsof -p will show you what file handle it is waiting for. Also strace -p and ltrace -p might be handy to try to debug it.