Help Center/ MapReduce Service/ User Guide (Ankara Region)/ Alarm Reference/ ALM-38004 Kafka Direct Memory Usage Exceeds the Threshold
Updated on 2024-11-29 GMT+08:00

ALM-38004 Kafka Direct Memory Usage Exceeds the Threshold

Alarm Description

The system checks the direct memory usage of the Kafka service every 30 seconds. This alarm is generated when the direct memory usage of a Kafka instance exceeds the threshold for 10 consecutive times.

When the Trigger Count is 1, this alarm is cleared when the direct memory usage is less than or equal to the threshold. When the Trigger Count is greater than 1, this alarm is cleared when the direct memory usage is less than or equal to 90% of the threshold.

Alarm Attributes

Alarm ID

Alarm Severity

Alarm Type

Service Type

Auto Cleared

38004

Major (default value: 95%)

Critical (default value: 100%)

Quality of service

Kafka

Yes

Alarm Parameters

Type

Parameter

Description

Location Information

Source

Specifies the cluster for which the alarm is generated.

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.

Additional Information

Trigger Condition

Specifies the threshold triggering the alarm. If the current indicator value exceeds this threshold, the alarm is generated.

Impact on the System

If the available direct memory of the Kafka service is insufficient, a memory overflow occurs and the broker instance breaks down. As a result, the broker cannot provide read and write services properly.

Possible Causes

The direct memory of the Kafka instance is overused or the direct memory is inappropriately allocated.

Handling Procedure

Check the direct memory usage.

  1. On the FusionInsight Manager portal, choose O&M > Alarm > Alarms > Kafka Direct Memory Usage Exceeds the Threshold > Location to check the host name of the instance for which the alarm is generated.
  2. On the FusionInsight Manager portal, choose Cluster > Name of the desired cluster > Services > Kafka > Instance. Click the instance for which the alarm is generated to go to the page for the instance. Click the drop-down menu in the Chart area and choose Customize > Process > Kafka Direct Memory Usage, and click OK.
  3. Check whether the used direct memory of Kafka reaches 80% of the maximum direct memory specified for Kafka.

    • If yes, go to 4.
    • If no, go to 7.

Check the direct memory size configured for the Kafka.

  1. On the FusionInsight Manager portal, choose Cluster > Name of the desired cluster > Services > Kafka > Configurations > All Configurations > Broker(Role) > Environment to increase the value of -Xmx configured in the KAFKA_HEAP_OPTS parameter by referring to the Note.

    • It is recommended that -Xmx and -Xms be set to the same value.
    • You are advised to view Kafka Direct Memory Usage by referring to 2, and set the value of KAFKA_HEAP_OPTS to twice the value of Direct Memory Used by Kafka.

  2. Save the configuration and restart the Kafka service.
  3. Check whether the alarm is cleared.

    • If yes, no further action is required.
    • If no, go to 7.

Collect fault information.

  1. On the FusionInsight Manager portal, choose O&M > Log > Download.
  2. Select Kafka in the required cluster from the Service drop-down list.
  3. Click in the upper right corner, and set Start Date and End Date for log collection to 10 minutes ahead of and after the alarm generation time, respectively. Then, click Download.
  4. Contact the O&M engineers and send the collected logs.

Alarm Clearance

After the fault is rectified, the system automatically clears this alarm.

Related Information

None.