Memory usage refers to the ratio of occupied memory space to the total memory space. Memory usage is an important indicator to evaluate device performance.
Fault Description
- If the device memory is smaller than 128 MB, a level 1 alarm is generated when the memory usage exceeds 83% and a level 2 alarm is generated when the memory usage exceeds 88%.
- If the device memory is larger than or equal to 128 MB, a level 1 alarm is generated when the memory usage exceeds 90% and a level 2 alarm is generated when the memory usage exceeds 95%.
Possible Causes
If the memory usage keeps increasing, a memory leak may occur.
Memory leak indicates that applications occupy memory space for a long time. If the applications do not release memory, the memory usage increases until the system memory is exhausted.
Procedure
Collect the memory usage, memory block size of partition 1, memory usage of the specified memory block, each PID, and specified PID, and provide the collected information to Huawei.
Display the memory usage.
<Huawei> display memory-usageConfigure memory block size of partition 1 to be displayed every day in three days.
<Huawei> system-view [Huawei] diagnose [Huawei-diagnose] display inspect mem-debug-info 13 1 0 0
The meanings of record-number in the display inspect mem-debug-info record-number mid-hex hex-string hex-value command are displayed as follows:[Huawei-diagnose] display inspect mem-debug-info ? INTEGER<0-26> 0 help; 1 utilization; 2 contents; 3 memory by address; 4 memory by time; 5 memory by PID; 6 memory by SID; 7 memory by SID&PID; 8 block size; 9 memory by used size; 11 shortage; 12 tracing; 13 show partition; 14 show information; 15 show Size; 16 pid by size; 17 show PID; 18 show all; 19 show PID&SID; 20 alloc free times; 21 block PID by SID; 22 memory piece; 23 alloc failed; 24 PID peak value; 25 partition; 26 partition used by PIDSID