Identify httpd processes

I'm experiencing extremely high server loads from time to time. Most of the time everything is normal, load is between 0.3 - 0.5, but every once in a while it just goes sky-high, over 50 or even 80. The server usually freezes when this happens.

When I run top or ps aux, I see many httpd processes and many mySQL connections. It seems to me that the problem is caused by some PHP script that connects to mySQL.

How can I find out which script is that? How can I see what a certain httpd process actually represents? Top and ps aux only say "httpd".

There are no high-load sites on the server, so there must be something wrong with the scripts.

 

 

 

 

Top