Chapter 3 Basic Troubleshooting 3-29
3.3.7 prstat Command
The prstat utility iteratively examines all active processes on the system and
reports statistics based on the selected output mode and sort order. The
prstat
command provides output similar to the
ps command.
3.3.7.1 Options
TABLE 3-12 describes options for the prstat command and how those options can
help troubleshoot the Sun Blade 1500 workstation.
TABLE 3-12 Options for prstat
Option Description How It Can Help
No option Displays a sorted list of the top
processes which 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
five seconds. Ctrl-C aborts.
Output identifies process ID, user ID, memory used, state,
CPU consumption, and command name. By default, list is
sorted by CPU consumption.
-n number Limits output to number of
lines.
Limits amount of data displayed and identifies primary
resource consumers.
-s key Permits sorting list by key
parameter.
Useful keys are cpu (default), time, and size.
-v
Verbose mode. Displays additional parameters.