Sponsored Content
Operating Systems Solaris Find any spike in CPU usage a hour ago Post 302145478 by sysgate on Wednesday 14th of November 2007 10:30:06 AM
Old 11-14-2007
I'm not sure about the logs, but you can run "ps -ef | cut -c42-100 | sort -nr | head" - this will give you the top 10 processes that took most CPU time, example :
Code:
ps -ef | cut -c42-100 | sort -nr | head
  TIME CMD
:28:06 /usr/bin/X :0 -br -audit 0 -auth /var/gdm/:0.Xauth -
:06:31 evolution
:05:30 /usr/lib/opera/9.23-20070809.6/opera -style plastik
:01:41 yakuake -session 1036028728a304000119392406100000023
:01:20 kicker
:00:59 hald-addon-storage: polling /dev/sr0 (every 2 sec)
:00:53 /usr/sbin/gdm-binary -nodaemon
:00:51 /usr/libexec/evolution/2.12/evolution-exchange-stora
:00:49 kwin -session 1036028728a304000119269781900000024800

HTH
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need to process files created an hour ago

Hello all, I would like to ask for an advice on how to deal with the following scenario. Every now and then, our ERP system creates an interface text file with the following file format - XORD????.DLD where ???? is a sequence number. We can have 1 or more XORD files created in an hour. ... (9 Replies)
Discussion started by: negixx
9 Replies

2. Programming

To find CPU Usage

I am programatically trying to find CPU usage for a particular process. I am writing a C program for this. I am not sure if my approach is good at all. I first of all find the PID using getpid() method. Then I call top -f <filename> and then parse to reach the PID row. I then try to read the 10th... (3 Replies)
Discussion started by: asutoshch
3 Replies

3. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

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

5. Solaris

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 (3 Replies)
Discussion started by: uuontario
3 Replies

6. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

7. UNIX for Advanced & Expert Users

How to find out memory & cpu usage of a process

Hi, By using time command we can determine the execution time of a process or command. bash-2.04$ time ls -l total 0 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file1 -rw-r--r-- 1 admin tac 0 Oct 6 04:46 file2 real 0m0.002s user 0m0.000s sys 0m0.001s... (5 Replies)
Discussion started by: learn more
5 Replies

8. 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
WMSMPMON(1)						      General Commands Manual						       WMSMPMON(1)

NAME
wmSMPmon - Window Maker System Monitor SYNOPSIS
wmSMPmon [options] DESCRIPTION
wmSMPmon is a Window Maker dock application that displays the following information about the system: - Current CPU utilization of up to two CPUs - Up to two minutes history of CPU utilization - Current memory usage - Current swap usage On dual CPU systems, wmSMPmon has three different styles for the utilization graph. To toggle between them just click into the graph. OPTIONS
All options start with one dash. -h Show summary of options. -r REFRESH_RATE Set the refresh rate of the graph in microseconds. The default is 250000 (a quarter of a second). -g GRAPH_STYLE Start using graph style #[1-3] (only on dual CPU systems). Style 1 shows the utiliziation in one graph, while 2 and 3 are split in two little graphs. Style 2 shows the two graphs on top of each other. Style 3 uses a mirror like type. The default style is 1, which is also the style used on single CPU systems. -c1 IDX, -c2 IDX On systems with more than 2 CPUs, select the CPUs to show. Per default CPU number 1 and 2 are shown. On a quad CPU systems you may launch second wmSMPmon showing CPUs number 3 and 4. -no-swap Do not monitor swap. SEE ALSO
wmaker(1x) AUTHOR
This manual page was originally written by Alain Schroeder <alain@debian.org> and adapted for wmSMPmon 3 by Thomas Ribbrock <emgaron@gmx.net> WMSMPMON(1)
All times are GMT -4. The time now is 11:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy