Go to main content

Administering Resource Management in Oracle® Solaris 11.4

Exit Print View

Updated: February 2021
 
 

How to Monitor System CPU Usage by Projects

  1. Assume the root role.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  2. Monitor the CPU usage of projects that run on the system.

    Command output is similar to the following:

    $ prstat -J
       PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
      5107 root     4556K 3268K cpu0    59    0   0:00:00 0.0% prstat/1
      4570 root       83M   47M sleep   59    0   0:00:25 0.0% java/13
    …
        10 root       15M   13M sleep   59    0   0:00:05 0.0% svc.startd/19
    PROJID    NPROC  SWAP   RSS MEMORY      TIME  CPU PROJECT
         1        6   25M   18M   0.9%   0:00:00 0.0% user.root
         0       73  479M  284M    14%   0:02:31 0.0% system
         3        4   28M   24M   1.1%   0:00:26 0.0% default
        10        2   14M 7288K   0.3%   0:00:00 0.0% group.staff
    
    Total: 85 processes, 553 lwps, load averages: 0.00, 0.00, 0.00