The set memory-usage threshold command sets the memory usage threshold.
The undo set memory-usage threshold command restores the default memory usage threshold.
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%.
set memory-usage threshold threshold-value [ slot slot-id ]
undo set memory-usage threshold [ threshold-value ] [ slot slot-id ]
Parameter | Description | Value |
---|---|---|
threshold-value |
Specifies the memory usage threshold. |
The value is an integer that ranges from 75 to 100. |
slot slot-id |
Specifies the memory usage threshold of a specified slot ID. |
The value depends on the device configuration. |
Usage Scenario
You can use the set memory-usage threshold command to set the memory usage threshold. When memory usage exceeds the threshold, the system logs the event and generates an alarm. By viewing log information, you can learn about memory usage.
Precautions
You are advised to use the default threshold. If the memory usage threshold is set too low, the system frequently generates alarms. If the memory usage threshold is set too high, you cannot learn about memory usage in a timely manner.