Does anyone have or know of a script that will automatically send the output of "top" when the load reaches a certain level? I am having a load spike issue that I'm finding impossible to track.
I get load spikes of up to around 25 for about 4 or 5 minutes at a time. The problem is that it does not occur on a regular schedule (and not even every day), so it's not a cron job. After 4 or 5 minutes the load returns to normal. I happened to be looking at the hotsanic graphs today and caught it as it was happening, but the load was so high that I could not connect to the server via ssh. Of course, by the time I contacted my datacenter to have a look via console the load was already back to normal.
I have checked
/usr/local/apache/logs/error_log
/usr/local/apache/logs/suexec_log
/var/log/exim_mainlog
/var/log/messages
but none of those show any suspicious activity at all during the load spikes. I'm thinking it's someone uploading or untarring files, probably not even realizing they're using so much of the available resources.
I get load spikes of up to around 25 for about 4 or 5 minutes at a time. The problem is that it does not occur on a regular schedule (and not even every day), so it's not a cron job. After 4 or 5 minutes the load returns to normal. I happened to be looking at the hotsanic graphs today and caught it as it was happening, but the load was so high that I could not connect to the server via ssh. Of course, by the time I contacted my datacenter to have a look via console the load was already back to normal.
I have checked
/usr/local/apache/logs/error_log
/usr/local/apache/logs/suexec_log
/var/log/exim_mainlog
/var/log/messages
but none of those show any suspicious activity at all during the load spikes. I'm thinking it's someone uploading or untarring files, probably not even realizing they're using so much of the available resources.