AR120&AR150&AR160&AR200&AR500&AR510&AR1200&AR2200&AR3200&AR3600 V200R006 Memory

Created: Feb 1, 2016 17:49:37Latest reply: Feb 1, 2016 18:01:17 1207 1 0 0

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.

  1. Display the memory usage.

    <Huawei> display memory-usage
  2. 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 
  3. 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).

  4. 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
  5. 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
  • x
  • convention:

user_2790689     Created Feb 1, 2016 18:01:17 Helpful(0) Helpful(0)

Thank you for sharing.
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top