This task describes how to view the processes that use the most CPU. These processes are often referred to as CPU hogs. BMC PATROL provides two methods to obtain this information.
BMC PATROL allows you to discover these CPU hogs by using a menu command or a parameter.
# PSL Serial No.: ######### <NOT INTERACTIVE> CPU Hogs collecting data for apprx. 30 seconds... Processes consuming at least 50% of CPU during this interval (30 sec.): PID CPU% USER CMD 29111 73 3Suprv audit_script -I i18nInstance -M CPU Hogs complete ---------------- >>>>> DONE <<<<< ----------------
The output has the following format. Following table defines each field.
pid cpu% user cmd line
CPU Hogs Command Output Format Field Description pid The process ID of the process cpu% The percentage of CPU that the process consumed during the survey interval user The name of the user that owns the process cmd line The complete command line (command and arguments up to 80 characters) that started the process; note that the command line can be modified during the process execution
This parameter displays the 10 processes that consume the most CPU.
BMC PATROL displays the information in a text parameter. Your result should resemble this example:
# PSL Serial No.: ######### %TIME PID PPID TOT SECS SIZE UID COMMAND 0.00 0 0 18 0 root sched 0.00 1 0 1 96 root /etc/init - 0.00 2 0 0 0 root pageout 0.00 3 0 588 0 root fsflush 0.00 315 1 0 217 root /usr/lib/saf/sac Last update: Thu Jun 14 12:50:27 CCYY Sample Period: 30 secs.
The output has the following format. Following table defines each field.
%time pid ppid tot secs size uid command
PROCTopProcs Text Parameter Format Field Description %time The percentage of cpu time that the process consumes pid The process ID of the process ppid The process ID of the parent process tot secs The total number of seconds the process consumed CPU resources size The total size of the process in virtual memory, in blocks uid command The complete command line (command and arguments up to 80 characters) that started the process; note that the command line can be modified during the process execution