system top
Use this command to view a list of the most system-intensive processes and to change the refresh rate.
To use this command, your administrator account’s access control profile must have either w
or rw
permission to the mntgrp
area. For details, see Permissions.
Syntax
diagnose system top [<delay_int> [<delay_int>]]
Variable | Description | Default |
Enter the process list refresh interval in seconds. | 5 | |
Set the maximum number of top processes to display. | All processes are shown. |
Once you execute this command, it continues to run and display in the CLI window until you enter q
(quit).
While the command is running, you can press Shift + P
to sort the five columns of data by CPU usage (the default) or Shift + M
to sort by memory usage.
Example
This example displays a list of the top FortiWeb processes and sets the update interval at 10 seconds.
diagnose system top 10
Below is a sample output.
Run Time: 0 days, 0 hours and 48 minutes
0U, 0S, 100I; 1002T, 496F
xmlproxy 152 S 1.3 4.7
updated 54 S 0.1 0.3
monitord 57 S 0.1 0.3
sys_monito 58 S 0.1 0.3
xmlproxy 56 S 0.0 8.2
alertmail 76 S 0.0 4.6
cli 396 S 0.0 1.2
cli 301 S 0.0 1.2
cmdbsvr 43 S 0.0 1.0
httpsd 147 S 0.0 1.0
cli 403 R 0.0 0.9
data_analy 60 S 0.0 0.6
httpsd 308 S 0.0 0.6
cli 379 S 0.0 0.5
hasync 63 S 0.0 0.4
hatalk 62 S 0.0 0.4
synconf 64 S 0.0 0.4
al_daemon 59 S 0.0 0.3
miglogd 53 S 0.0 0.3
The first line indicates the up time. The second line lists the processor and memory usage, where the parameters from left to right mean:
- U—Percent of user CPU usage (in this case 0%)
- S—Percent of system CPU usage (in this case 0%)
- I—Percentage of CPU idle (in this case 100%)
- T—Total memory in kilobytes (in this case 2008 KB)
- F—Available memory in kilobytes (in this case 445 KB)
The five columns of data provide the process name (such as updated
), the process ID (pid
), the running status, the CPU usage, and the memory usage. The status values are:
- S—Sleeping (idle)
- R—Running
- Z—Zombie (crashed)
- <—High priority
- N—Low priority