unusual high server load- how to trace down the faulty scripts?
first of all I am sorry if this is a stupid question, but:
I have a dedicated server running CentOS, with a quite powerful hardware: dual 3 Ghz processor, 2 Gb Ram, and I`m running about 25-30 sites.
from a while the server has unusual high loads, and I keep getting mails from WHM that "the CPU has been maxed out in the past 6 hours".
we also had hacker attacks on the server, but it`s cleaned up.
my question is:
how can I trace down what processes are running on the server, because all I can see that mysql and httpd are causing the high loads, and in this case:
how can I trace down if there are any php scripts causing the high loads, maybe incorrect scripts, etc.
is there any tool for this?