High load - is it my fault?


#1

The server I’m sharing occasionally hits an extremely high load, in the range of 15-30, and my pages and SSH console become slow or barely responsive.

Is there an easy way to tell whether this load is caused by a bad script on my site, rather than someone else’s? The Apache logs tell me which of my pages are most frequently visited, but not how much memory or time PHP used to serve them.


#2

top


#3

Just checked: you are using a significant amount of CPU on the server, but I wouldn’t say that you’re necessarily to blame for the slowness. It does look as though you’re using a custom PHP interpreter in CGI mode, though, which can’t be helping. (The preferred option is to get it working as FastCGI, so that we don’t have to launch a new interpreter for every request.)