ALM-13003 GC Duration of the ZooKeeper Process Exceeds the Threshold
Alarm Description
The system checks the garbage collection (GC) duration of the ZooKeeper process every 60 seconds. This alarm is generated when the GC duration exceeds the threshold.
This alarm is cleared when the GC duration is less than the threshold.
Alarm Attributes
Alarm ID |
Alarm Severity |
Alarm Type |
Service Type |
Auto Cleared |
---|---|---|---|---|
13003 |
Critical (default threshold: 10000 ms) Major (default threshold: 5000 ms) |
Quality of service |
ZooKeeper |
Yes |
Alarm Parameters
Type |
Parameter |
Description |
---|---|---|
Location Information |
Source |
Specifies the cluster for which the alarm was generated. |
ServiceName |
Specifies the service for which the alarm was generated. |
|
RoleName |
Specifies the role for which the alarm was generated. |
|
HostName |
Specifies the host for which the alarm was generated. |
|
Additional Information |
Trigger Condition |
Specifies the alarm triggering condition. |
Impact on the System
The ZooKeeper process may respond slowly. Services of upper-layer components (such as Yarn, Flink, and Spark) may fail.
Possible Causes
The heap memory of the ZooKeeper process is overused or inappropriately allocated, causing frequent occurrence of the GC process.
Handling Procedure
Check the GC duration.
- On FusionInsight Manager, choose O&M > Alarm > Alarms. On the displayed page, click the drop-down list of GC Duration of the ZooKeeper Process Exceeds the Threshold. View the IP address of the instance for which the alarm was generated.
- On FusionInsight Manager, choose Cluster > Name of the desired cluster > Services > ZooKeeper > Instance > quorumpeer. Click the drop-down list in the upper right corner of Chart, choose Customize > GC, select ZooKeeper GC Duration per Minute, and click OK to check the GC duration statistics of the ZooKeeper process collected every minute.
- Check whether the GC duration of the ZooKeeper process collected every minute exceeds the threshold.
- Check whether memory leakage occurs in the application.
- On FusionInsight Manager, choose Cluster, click the name of the desired cluster, and choose Services > ZooKeeper > Configurations > All Configurations > quorumpeer > System. Increase the value of the GC_OPTS parameter as required.
Generally, -Xmx is twice of ZooKeeper data capacity. If the capacity of ZooKeeper reaches 2 GB, set GC_OPTS as follows:
-Xms4G -Xmx4G -XX:NewSize=512M -XX:MaxNewSize=512M -XX:MetaspaceSize=64M -XX:MaxMetaspaceSize=64M -XX:CMSFullGCsBeforeCompaction=1
- Save the configuration and restart the ZooKeeper service.
- Check whether the alarm is cleared.
- If yes, no further action is required.
- If no, go to 8.
Collect the fault information.
- On FusionInsight Manager, choose O&M. In the navigation pane on the left, choose Log > Download.
- Expand the Service drop-down list, and select ZooKeeper for the target cluster.
- Click the edit icon 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.
- Contact O&M engineers and provide the collected logs.
Alarm Clearance
This alarm is automatically cleared after the fault is rectified.
Related Information
None.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot