Command Line (CLI) Reference > CLI Commands > Processes

CLI: Processes

You can use the show pm process command to view information on a running process or service.

show pm process

show processes [{limit <num>|sort|threads}]

To show the information on a running process or service:

show pm process <process-name>

E X A M P L E

Show the status of the collectord service

# show pm process collectord

Process collectord

  Configuration:

     Launchable:      yes

     Auto-launch:     yes

     Auto-relaunch:   yes

     Launch path:     /opt/tms/bin/collectord

     Re-exec path:    (none)

     Argv:            /opt/tms/bin/collectord

      Max snapshots:   10

      Launch order:    0

     Launch timeout:  0

     Shutdown order:  0

     CPU Affinity:    (not set)

     Test liveness:   no

     Hung count:      4

  State:

     Current status:  running

     PID:             3489

     Num. failures:   0

     Last launched:   2011/04/04 10:40:20.949 (1 day 0 hr 26 min 28.079 sec ago)

     Last terminated:

     Next launch:

To view CPU and memory use of all processes:

show processes [{limit <num>|sort|threads}]

E X A M P L E

Show the top 5 processes by CPU usage

# show processes sort cpu limit 5

User        Memory Usage (kB)    %CPU %Memory S  Time     Process

         Virtual Resident Shared

-------- ------- -------- ------ ---- ------- - --------- --------------

   admin    616m     341m   110m  4.0     8.8 S   7:25.02 collectord

   admin       0        0      0  2.0     0.0 S   6:33.50 kipmi0

   admin   73996      10m   8564  2.0     0.3 S   7:28.65 communityd

   admin   61192     9496   6884  2.0     0.2 S   0:19.68 slad

   admin       0        0      0  2.0     0.0 S   0:14.80 kworker/u:1