Process Count Monitoring
Overview
The number of processes is monitored. When the number of processes exceeds the threshold for the process count alarm or drops below the alarm clear threshold, a corresponding alarm is reported, and the alarm information is recorded in the log.
Configuration Description
/etc/sysmonitor/pscnt is the configuration file of process count monitoring.
The following shows the example configuration items in thisfile (for a 4P or less than 4P server):
#Threshold for the process (thread) count alarm. ALARM="1600" #Threshold for the clear alarm. RESUME="1500" #Monitoring period (s). PERIOD="60"
Table 1 Configuration description describes the configuration items in the /etc/sysmonitor/pscnt file.
Configuration Item |
Description |
Mandatory or Not |
Default Value |
---|---|---|---|
ALARM |
Threshold for the process count alarm, which is an integer greater than 0. |
No |
1600 |
RESUME |
Threshold for the clear alarm, which is an integer greater than or equal to 0. |
No |
1500 |
PERIOD |
Monitoring period. Unit: second. Value range: > 0. |
No |
60 |
- After the configuration file of process count monitoring is modified, run the systemctl reload sysmonitor command so that the modifications can take effect in a new monitoring period.
- The value of ALARM must be greater than that of RESUME.
- In a 16P server, ALARM is set to 10000, RESUME is set to 8000, and PERIOD is set to 60 by default. In the 8P or 32P server, ALARM is set to 20000, RESUME is set to 16000, and PERIOD is set to 60 by default.
Error Log
If process count alarms are reported, the following information is printed in /var/log/sysmonitor.log:
[2015-04-16:07:44:54]sysmonitor[31896]: process count alarm: 1657 [2015-04-16:07:45:17]sysmonitor[31896]: process count resume: 1200