• MapReduce Service

mrs
  1. Help Center
  2. MapReduce Service
  3. User Guide
  4. MRS Manager Operation Guide
  5. Alarm Reference
  6. ALM-13002 ZooKeeper Heap Memory or Direct Memory Usage Exceeds the Threshold

ALM-13002 ZooKeeper Heap Memory or Direct Memory Usage Exceeds the Threshold

Description

The system checks the memory usage of the ZooKeeper service every 30 seconds. This alarm is generated when the memory usage of a ZooKeeper instance exceeds the threshold (80% of the maximum memory).

The alarm is cleared when the memory usage is less than the threshold.

Attribute

Alarm ID

Alarm Severity

Automatically Cleared

13002

Major

Yes

Parameters

Parameter

Description

ServiceName

Specifies the service for which the alarm is generated.

RoleName

Specifies the role for which the alarm is generated.

HostName

Specifies the host for which the alarm is generated.

Trigger Condition

Generates an alarm when the actual indicator value exceeds the specified threshold.

Impact on the System

If the available memory for the ZooKeeper service is insufficient, a memory overflow occurs and the service breaks down.

Possible Causes

  • The memory usage of the ZooKeeper instance on the node is overused
  • The memory is improperly allocated.

Procedure

  1. Check the memory usage.

    1. On the MRS Manager portal, choose Alarm > ALM-13002 ZooKeeper Memory Usage Exceeds the Threshold > Location. Check the IP address of the instance that generated the alarm.
    2. On the MRS Manager portal, choose Service > ZooKeeper > Instance > quorumpeer(the IP address checked) > Customize > Heap and Direct Memory of ZooKeeper. Check the heap usage.
    3. Check whether the used heap memory of ZooKeeper reaches 80% of the maximum heap memory specified for ZooKeeper.
      • If yes, go to 1.d.
      • If no, go to 1.f.
    4. On the MRS Manager portal, choose Service > ZooKeeper > Service Configuration > All > quorumpeer > System. Increase the value of -Xmx in GC_OPTS as required.
    5. Check whether the alarm is cleared.
      • If yes, no further action is required.
      • If no, go to 1.f.
    6. On the MRS Manager portal, choose Service > ZooKeeper > Instance > quorumpeer(the IP address checked) > Customize > Heap and Direct Memory of ZooKeeper. Check the direct buffer memory usage.
    7. Check whether the used direct buffer memory of ZooKeeper reaches 80% of the maximum direct buffer memory specified for ZooKeeper.
    8. On the MRS Manager portal, choose Service > ZooKeeper > Service Configuration > All > quorumpeer > System.

      Increase the value of -XX:MaxDirectMemorySize in GC_OPTS as required.

    9. Check whether the alarm is cleared.
      • If yes, no further action is required.
      • If no, go to Step 2.

  2. Collect fault information.

    1. On MRS Manager, choose System > Export Log.
    2. Contact technical support engineers for help, detail see technical support.

Related Information

N/A