Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Monday, May 25, 2009

Which Process Is Using Up Most The CPU Resources


Question


How can you determine which process is using up the most CPU time?


Cause



Answer

The following commands and tools can be used to find which process is using the most cpu resources.

1. topas -P



In the topas -P output above the process called "cpu-eater" is the top consumer of cpu resources.

2. tprof -x sleep 10; vi sleep.prof



1 comment:

Unknown said...

long time ago after some googling i found this veery handy line:

svmon -Pt35 | perl -e 'while(<>){print if($.==2||$&&&!$s++);$.=0 if(/^-+$/)}'

Labels

BlogCatalog