How to check CPU spike between certain priod of time


 
Thread Tools Search this Thread
Operating Systems Solaris How to check CPU spike between certain priod of time
# 1  
Old 05-18-2009
How to check CPU spike between certain priod of time

Hi,

Does anyone know how to check which process has been used the most CPU between certain time period?

say I have noticed CPU spike happend between 1:00 to 1:30

now it is 3:00 o'clock already. Is there anyway to find out what process/PID use the most CPU then?

Thanks a lot
# 2  
Old 05-18-2009
Not that I know of, but you could set a cron to run: "top -b" into a log file from say 12:30 until 14:00 every 5 minutes or so, every working day so that you will know what the peak is if it happens again soon...
# 3  
Old 05-19-2009
This section would go under performance monitoring. There are tools which you can obtain to track what's hapening to your system. However, at the end, you will stil have to fix the issue where why the CPU surge occurs, it might not be something to do with your h/w or OS, could be your DB or apps , for eg..
# 4  
Old 05-19-2009
thank you very much.

It is related to one of apps... There is a tool we use called HP Openview Performance Manager...

I googled yesterday and found "sar -s 13:00 -s 13:30" but it is not working on the box.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Cpu time

Hi Experts, If a thread running on CPU needs some data from RAM (from near or far RAM) it requests the data (this moment of time is t0) and gets it in moment of time in t1, and continues his work. Between t0 and t1, while data is transferring from RAM, the thread is goes out from CPU? Is the... (2 Replies)
Discussion started by: sant
2 Replies

2. Shell Programming and Scripting

what would a script include to find CPU's %system time high and user time high?

Hi , I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( . how to find cpu's system high time and user time high in a script?? thanks , help would be appreciated ! :) (9 Replies)
Discussion started by: sushwey
9 Replies

3. Solaris

Solaris 10 - script creating huge spike in Kernel CPU

I'm running on Solaris 10, and I have a script that's running on several machines. Basically, what it's doing is: * tail -f | grep one or more log files into a temp file * Every minute or so, copy that temp file to a second temp and zero the first * Sed through the 2nd temp to pull out a user... (2 Replies)
Discussion started by: Rorgg
2 Replies

4. Shell Programming and Scripting

Why CPU time is longer than Elasped time?

I thought a program's elapsed time, some program language call it real time, should be the time of a program from start to finish. And it should be equal or longer than CPU time. This is true for the most of the cases. However, I do see some of my programs CPU time is longer than Elapsed time. ... (1 Reply)
Discussion started by: visio2000
1 Replies

5. UNIX for Dummies Questions & Answers

Apache causing CPU to spike when POSTing

Hello all. I've built a SAMP server on Solaris 10 using Apache 2.2.9 and PHP 5.2.6 For the most part everything seems to be working except when I post form data, Apache causes the CPU to max out. Sometimes the script will complete about 40 seconds later. Other times I have to stop Apache to get... (4 Replies)
Discussion started by: RobertSubnet
4 Replies

6. SCO

How to check CPU Utilization

Hi All, I want to check the CPU Utilization for my SCO UNIX machine. Please suggest some commands to do that. Thanks, Am (2 Replies)
Discussion started by: am_yadav
2 Replies

7. Solaris

Find any spike in CPU usage a hour ago

Folks, I need to find out from the system logs ( or elsewhere ) if the CPU utilization reached say 90% an hour ago from now. Is there a way out. (2 Replies)
Discussion started by: kavera
2 Replies

8. Shell Programming and Scripting

how to check CPU consume time by unix script.

Hi, I searched for any answers to this query bu in vain. My question is , Is their any script or command to check how much CPU time is been taken by a script. thanks. (1 Reply)
Discussion started by: Rakesh Bhat
1 Replies

9. UNIX for Dummies Questions & Answers

command for check CPU

Can someone tell me which command I should use to get the detail CPU info in one HP unix box, asuch as # of CPU, CPU Speed and CPU HW Support Thanks (2 Replies)
Discussion started by: abcde
2 Replies
Login or Register to Ask a Question