Overview
This article provides detailed information regarding the Exinda CLI command process
.
You can use the show pm process
command to view information on a running process or service.
Information
- {}: Options are enclosed in braces and are separated by '|'
- []: Optional keywords are enclosed in brackets
- <>: User input is required where variables are enclosed in greater-than and less-than symbols
The following table describes the commands used for performing common actions related to processes:
Action Description | Command |
Parameter Description |
To show the information on a running process or service |
show pm process <process-name> |
Not Applicable |
To view CPU and memory use of all processes | show processes limit <num> |
limit <num> - Show processes, limiting the number of lines displayed. Use this to generate a "top N" style display. The default sort order is CPU usage |
show processes sort {cpu|memory|time} |
sort {cpu|memory|time} - Sort processes by CPU usage, memory (RSS as a percentage of total) or process time |
|
show processes threads |
threads - Show process threads |
Example
-
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: -
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
Find more CLI commands.