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

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...

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..

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.