B-20 SPARC Enterprise M4000/M5000 Servers Installation Guide • December 2010
B.3.7.1 Options
TABLEB-9 describes options for the prstat command and how those options can
help troubleshooting.
The following example shows output for the prstat command.
TABLEB-9 Options for prstat
Option Description HowIt Can Help
No option Displays a sorted list of the top
processesthat are consuming
the most CPU resources.List is
limited to the height of the
terminal window and the total
number of processes.Output is
automatically updated every
fiveseconds. Ctrl-C aborts.
Output identifiesprocess ID, user ID, memory used, state,
CPU consumption, and command name.
-n number Limits output to number of
lines.
Limits amount of data displayed and identifiesprimary
resourceconsumers.
-s key Permits sorting list by key
parameter.
Useful keys arecpu (default), time, andsize.
-v Verbosemode. Displays additional parameters.
#prstat -n 5 -s size
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
100463 root 66M 61M sleep 59 0 0:01:03 0.0% fmd/19
100006 root 11M 9392K sleep 59 0 0:00:09 0.0% svc.configd/16
100004 root 10M 8832K sleep 59 0 0:00:04 0.0% svc.startd/14
100061 root 9440K 6624K sleep 59 0 0:00:01 0.0% snmpd/1
100132 root 8616K 5368K sleep 59 0 0:00:04 0.0% nscd/35
Total: 52 processes, 188 lwps, load averages: 0.00, 0.00, 0.00
#