Go to main content

Administering Resource Management in Oracle® Solaris 11.3

Exit Print View

Updated: March 2018
 
 

How to Monitor System CPU Usage by Projects

  • To monitor the CPU usage of projects that run on the system, use the prstat command with the –J option.
    # 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
      5105 bobbyc   3280K 2364K sleep   59    0   0:00:00 0.0% su/1
      5106 root     3328K 2580K sleep   59    0   0:00:00 0.0% bash/1
         5 root        0K    0K sleep   99  -20   0:00:14 0.0% zpool-rpool/138
       333 daemon   7196K 2896K sleep   59    0   0:00:07 0.0% rcapd/1
        51 netcfg   4436K 3460K sleep   59    0   0:00:01 0.0% netcfgd/5
      2685 root     3328K 2664K sleep   59    0   0:00:00 0.0% bash/1
       101 netadm   4164K 2824K sleep   59    0   0:00:01 0.0% ipmgmtd/6
       139 root     6940K 3016K sleep   59    0   0:00:00 0.0% syseventd/18
      5082 bobbyc   2236K 1700K sleep   59    0   0:00:00 0.0% csh/1
        45 root       15M 7360K sleep   59    0   0:00:01 0.0% dlmgmtd/7
        12 root       23M   22M sleep   59    0   0:00:45 0.0% svc.configd/22
        10 root       15M   13M sleep   59    0   0:00:05 0.0% svc.startd/19
       337 netadm   6768K 5620K sleep   59    0   0:00:01 0.0% nwamd/9
    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