2014-02-17 15:57:16 +00:00
|
|
|
# prstat
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Report active process statistics.
|
2021-03-31 12:09:14 +01:00
|
|
|
> More information: <https://www.unix.com/man-page/sunos/1m/prstat>.
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Examine all processes and reports statistics sorted by CPU usage:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
|
|
|
`prstat`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Examine all processes and reports statistics sorted by memory usage:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
|
|
|
`prstat -s rss`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Report total usage summary for each user:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
|
|
|
`prstat -t`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Report microstate process accounting information:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
|
|
|
`prstat -m`
|
|
|
|
|
2020-03-05 02:25:54 +00:00
|
|
|
- Print out a list of top 5 CPU using processes every second:
|
2014-02-17 15:57:16 +00:00
|
|
|
|
2024-06-18 20:07:45 +01:00
|
|
|
`prstat -c -n 5 -s cpu 1`
|