Configuring the Memory Usage Alarm Threshold
Context
Memory usage is an important indicator used to evaluate device performance. A high memory usage will cause service faults. During data processing, if the device can generate an alarm when high memory usage occurs, you can effectively monitor memory usage and optimize system performance to ensure system stability.
Memory usage alarm threshold
When memory usage reaches this threshold, the system generates an alarm.
Memory usage alarm recovery threshold
When memory usage falls below this threshold, the system clears the alarm.
Procedure
- (Optional) Run display memory-usage threshold [ slot slot-id ]
The memory usage configuration is displayed.
- Run system-view
The system view is displayed.
- Run set memory-usage threshold threshold-value [ slot slot-id ]
The memory usage alarm threshold is set.
By default, the memory usage alarm threshold is 90% and the memory usage alarm recovery threshold is 85% on the S5720EI. On the S1720GFR, S2750EI, S5700LI and S5700S-LI , The following describes the memory usage alarm threshold :If the memory capacity on the device is lower than or equal to 256 MB, the memory usage alarm threshold is 85% and the memory usage alarm recovery threshold is 80%.
If the memory capacity on the device is larger than 256 MB and smaller than or equal to 512 MB, the memory usage alarm threshold is 90% and the memory usage alarm recovery threshold is 85%.
If the memory capacity on the device is higher than 512 MB, the memory usage alarm threshold is 95% and the memory usage alarm recovery threshold is 90%.
If the memory capacity on the device is lower than or equal to 512 MB, the memory usage alarm threshold is 85% and the memory usage alarm recovery threshold is 80%.
If the memory capacity on the device is larger than 512 MB and smaller than or equal to 1.5 GB, the memory usage alarm threshold is 90% and the memory usage alarm recovery threshold is 85%.
If the memory capacity on the device is higher than 1.5 GB, the memory usage alarm threshold is 95% and the memory usage alarm recovery threshold is 90%.