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
After running the display memory-usage command, you find that the memory usage is high. By default, alarm ENTITYTRAP_1.3.6.1.4.1.2011.5.25.219.2.15.1 hwMemUtilizationRising is generated when the memory usage exceeds 95%. If the memory usage keeps increasing, the system is automatically reset and services are interrupted.
Possible Causes
If the memory usage keeps increasing, a memory leak may occur.
NOTE:
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 2, 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-usage -
Configure memory block size of partition 2 to be displayed every day in three days.
<Huawei> system-view [Huawei] diagnose [Huawei-diagnose] display inspect mem-debug-info 13 2 0 0
NOTE:
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 -
Display the memory usage of the specified memory block (the block of which the UsedSize value in step 2 keeps increasing).
For example, the UsedSize value of block 84 keeps increasing. Display the memory usage of block 84:
<Huawei> system-view [Huawei] diagnose [Huawei-diagnose] display inspect mem-debug-info 16 2 54 0
NOTE:
The value 54 is a Hexadecimal value, namely, 0x54 (84).
-
Configure memory usage of each PID to be displayed every day in three days.
<Huawei> system-view [Huawei] diagnose [Huawei-diagnose] display inspect mem-debug-info 26 2 0xffffffff 0
-
Display the memory usage of the specified PID (the PID of which the AllocSize value in step 4 keeps increasing).
For example, the AllocSize value of PID 0xff32 keeps increasing. Display the memory usage of PID 0xff32:
<Huawei> system-view [Huawei] diagnose [Huawei-diagnose] display inspect mem-debug-info 26 2 0xff32 0
