English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Many applications are running on my Solaris server. I want to check the CPU usage for a particular application / process. So that I can tune the performance of the complete server.

2007-08-20 05:59:58 · 2 answers · asked by Saurabh S 1 in Computers & Internet Other - Computers

2 answers

You may want to try using the /usr/ucb/ps command rather than /usr/bin/ps (which tends to be the default for most users based on their path settings).

Try: /usr/ucb/ps aux | grep

Another thing to look at would be the /usr/bin/prstat command to show active process statistics.

Try: /usr/bin/prstat -a

The -a will show a summary of user process info too.

2007-08-20 06:11:36 · answer #1 · answered by Jim Maryland 7 · 1 0

I would do a ps command and pipe it into grep to search for either the process name or the PID, whichever makes sense to you.

e.g. ps -o pid,pcpu,comm | grep 1234

where 1234 is the PID of the process you are looking for.

OR

ps -o pid,pcpu,comm | grep myProcess

where myProcess is the name of the process you are looking for.

You can also use the "top" command and order it by CPU% to watch processes "rise and fall" based on CPU utilization.

2007-08-20 13:10:44 · answer #2 · answered by redbird 2 · 0 0

fedest.com, questions and answers