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


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers CPU 0% idle - how do I find what was running?
# 8  
Old 04-27-2009
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.
# 9  
Old 04-27-2009
Quote:
Originally Posted by methyl
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.
# 10  
Old 04-27-2009
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?
# 11  
Old 04-27-2009
Quote:
Originally Posted by methyl
I too have large scale server monitoring software, but this is the UFD Q&A and we're trying to address the specific question.
.... 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.
# 12  
Old 04-28-2009
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. Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Idle command to kill the process running n unx box machine

Hi Team , I have one process named as cec_analysiseool that is running on unix box machine now i want to kill this process so please advise what will be the ideal command to kill this , what i have tried is :confused: kill -9 `ps -ef | grep cec_analysiseool | grep -v grep | awk '{print $2}'` (2 Replies)
Discussion started by: unclesamm
2 Replies

2. UNIX for Dummies Questions & Answers

Idle Process Exhausting CPU

I noticed when having some trouble with code I was testing that the CPU was becoming exhausted and I would have to reboot. After rebooting a couple times I decided to check for other problems before trying my code again. That's when I noticed that the CPU with the idle process was through the roof:... (5 Replies)
Discussion started by: Azrael
5 Replies

3. UNIX for Advanced & Expert Users

idle% cpu and run queue

Hi Everybody, Can anybody explain how CPU idle% is about 50%, but runq-sz more than 1? sar from Solaris 10: 00:00:05 %usr %sys %wio %idle 17:00:08 27 12 0 61 17:20:05 40 15 0 45 17:40:05 27 12 0 61 18:00:05 23... (2 Replies)
Discussion started by: sant
2 Replies

4. Solaris

Why CPU idle 0 process nohub lose

Hello Solaris 8 when CPU idle 0 . why nohub process lose ? Thank (1 Reply)
Discussion started by: ppmanja
1 Replies

5. Shell Programming and Scripting

Help on shell script conditional execution when CPU Idle > 60%

I need a shell script that will monitor a few conditions and not execute until the these conditions are met. The problem I'm having is that I can not perform a database snapshot (backup) of a sybaseIQ database unless the CPU Status Idle % is above 60% or the snapshot (backup) fails. If... (2 Replies)
Discussion started by: pancona99
2 Replies

6. Solaris

top is showing 0% cpu Idle

What should we do if we show a 0% cpu idl on top? (5 Replies)
Discussion started by: Pouchie1
5 Replies

7. Shell Programming and Scripting

How to get the information about cpu idle from top command?

I am using Ubuntu 9.04. I want to write a shell script to get the information about cpu idle from top command at the real time when i call it, compare cpu idle with 20 (20%), if cpu idle > 20 exit 1, vice versa exit 0. Anybody can help me to resolve it ? Thanks alot. (7 Replies)
Discussion started by: huyquocnguyen
7 Replies

8. HP-UX

vmstat displays cpu idle time at 100%

Since yesterday the vmstat command is displaying the cpu idle time at 100%At each time interval. It never changes. Not sure what it means other than it Quit calculating that stat. And I'm curious why. Using sar I can display a correctCpu idle percent, but vmstat does not. Any ideas why or... (2 Replies)
Discussion started by: tfrye
2 Replies

9. HP-UX

sar output gives 98% idle CPU

Dear All, Our HPUX 8 GB 8CPU database server is behaving abnormally for the last 4+ weeks. I have generated a sar output and it is here- 11:46:52 %usr %sys %wio %idle 11:46:53 1 1 6 92 11:46:54 0 1 0 99 11:46:55 0 1 0... (3 Replies)
Discussion started by: Ashrunil
3 Replies

10. Solaris

CPU idle

hi when should we consider that CPU is loaded? When it is 100% idle or 0%idle?? tx (4 Replies)
Discussion started by: melanie_pfefer
4 Replies
Login or Register to Ask a Question