Process monitoring is used to monitor active processes on a host. By default, the Agent collects CPU usage, memory usage, and the number of opened files of the active processes. If you have customized process monitoring, the number of processes containing keywords is also monitored.
The Agent collects process CPU usages once every minute and displays the top 5 processes, ranked by the CPU usage over the last 24 hours.
To view the process monitoring information, install the Agent.
After the Agent is installed, you can check system processes on Cloud Eye.
To query the number of processes
Metric |
Description |
Value Range |
Collection Mode (Linux) |
Collection Mode (Windows) |
---|---|---|---|---|
Running Processes |
Number of processes that are running |
≥ 0 |
Monitored object: ECS or BMS You can obtain the state of each process by checking the Status value in the /proc/pid/status file, and then collect the total number of processes in each state. |
Not supported |
Idle Processes |
Number of processes that are idle |
≥ 0 |
Monitored object: ECS or BMS You can obtain the state of each process by checking the Status value in the /proc/pid/status file, and then collect the total number of processes in each state. |
Not supported |
Zombie Processes |
Number of zombie processes |
≥ 0 |
Monitored object: ECS or BMS You can obtain the state of each process by checking the Status value in the /proc/pid/status file, and then collect the total number of processes in each state. |
Not supported |
Blocked Processes |
Number of processes that are blocked |
≥ 0 |
Monitored object: ECS or BMS You can obtain the state of each process by checking the Status value in the /proc/pid/status file, and then collect the total number of processes in each state. |
Not supported |
Sleeping Processes |
Number of processes that are sleeping |
≥ 0 |
Monitored object: ECS or BMS You can obtain the state of each process by checking the Status value in the /proc/pid/status file, and then collect the total number of processes in each state. |
Not supported |
Total Processes |
Total number of processes |
≥ 0 |
Monitored object: ECS or BMS You can obtain the state of each process by checking the Status value in the /proc/pid/status file, and then collect the total number of processes in each state. |
Monitored object: ECS or BMS Obtain the total number of processes by using the system process status support module psapi.dll. |
To query information about top 5 processes with the highest CPU usages
In the Monitored Processes area, the system selects processes in the Running state by default and displays CPU usage curves of those processes in 1h. The displayed data is raw data.
You can also select the process to be displayed and view its CPU usage curve in 1h.
You can click CPU Usage, Memory Usage, or Open Files above the graph to view the curves of different metrics of the currently displayed process. Table 2 lists Process Monitoring metrics.
Metric |
Description |
Value Range |
Collection Mode (Linux) |
Collection Mode (Windows) |
---|---|---|---|---|
CPU Usage |
Specifies the usage of CPU consumed by a process. pHashId (process name and process ID) is the value of md5. |
0–100% |
Monitored object: ECS or BMS Check the metric value changes in file /proc/pid/stat. |
Monitored object: ECS or BMS Call Windows API GetProcessTimes to obtain the CPU usage of the process. |
Memory Usage |
Specifies the memory consumed by a process. pHashId (process name and process ID) is the value of md5. |
0–100% |
Monitored object: ECS or BMS Memory Usage = RSS*PAGESIZE/MemTotal RSS: Obtain its value by checking the second column of file /proc/pid/statm. PAGESIZE: Obtain its value by running the getconf PAGESIZE command. MemTotal: Obtain its value by checking file /proc/meminfo. |
Monitored object: ECS or BMS Invoke Windows API procGlobalMemoryStatusEx to obtain the total memory size. Invoke GetProcessMemoryInfo to obtain the used memory size. Use the used memory size to divide the total memory size to get the memory usage. |
Open Files |
Specifies the number of opened files consumed by the process. pHashId (process name and process ID) is the value of md5. |
≥ 0 |
Monitored object: ECS or BMS You can run the ls -l /proc/pid/fd command to view the number. |
Not supported |
In the upper left corner, you can see six default monitoring periods: 1h, 3h, 12h, 1d, 7d, and 30d. To view historical monitoring data for any period during the last six months, customize the monitoring period by setting Select Range in the upper right corner.
In the upper left corner of the graph, you can click Settings to configure the rollup method.