CPU 0% idle - how do I find what was running?

Hi, I checking yesterday's SAR logs for one of our servers and it was showing that utilisation was down to 0% for 10 minutes at 2am. We're unaware of any jobs running at this time so need to find out which process caused this spike.

Is there anything built into SAR (or does anything else exist) that allows you to see what processes where historically running at certain times of the day?

This is on a Solaris 10 box by the way.

Thanks in advance. :b:

you may have top installed.

top will show what's using CPU.

often found in /usr/local/bin/top

The original poster was specifically looking for historical data. top() does not provide historical data.

More later..... From my mobile

Thanks. Yeah, it's a historical process that I was after. I shall wait patiently for your non-mobile based response... :wink:

I recommend that you install a free monitoring package that (1) stores performance data in an open source database, (2) has excellent charting / visualization capabilities, (3) works well out-of-the-box and (4) is easily extended.

For this site, we use Zabbix to monitor and troubleshoot performance issues.

Were you running a backup?

Anything in cron around that time?

Those are good basic questions.

Realisticly, before making inquiries is would be best to know the applications running on the server.

The poster was asked about monitoring tools, which is a different line of questioning than helping him uncover a problem.

Visualization / monitoring tools are free and work great. Installing one will reap many benefits.

On that theme.
If this was a one-off the process(es) will only be found directly if there was process monitoring software already in place or the process itself left a trail (e.g. in cron log or other logs).
If the load happens daily at the same time, running a suitable "ps" to a file from cron during the appropriate period at say 2-minute intervals should help find the process.

If you assume it is a "one off" then you don't need anyrthing, LOL. As you can imagine, we get a lot of "one offs" here, , mostly due to network anomalies. We have a lot of cron jobs running. We don't use ps for troubleshooting much now, but used to before installing zabbix.

I too have large scale server monitoring software, but this is the UFD Q&A and we're trying to address the specific question.
I agree that a totally one-off peak may just cause us to prepare for next time.
Maybe "sar -d" shows unusual disc activity?

.... And as the poster agreed, he is interested in historical data. ps is not a tool for historical data.

In fact, ps is mostly useless for solving difficult problems.

Hi, thanks for the replies. No as far as we know there was nothing running on the box at that time (although obviously something was)

Unfortunately I can't install any monitoring software on these boxes as there are very strict rules about what software can and can't be ran on these boxes, so unless it's something that is part of the standard Solaris 10 install then I won't have that tool available to me.

As Neo says, I may just have to write this off as a one-off (it hasn't happened since) and then maybe knock up a monitoring script if it occurs again.

Thanks for the help. :b: