Runbook

Frequent Garbage Collection in Elasticsearch

Back to Runbooks

Overview

This incident type refers to a situation where the Elasticsearch cluster is experiencing frequent garbage collection. Garbage collection is a process that frees up memory occupied by objects that are no longer in use. In Elasticsearch, garbage collection is a critical process that ensures that the cluster runs smoothly and efficiently. However, if garbage collection occurs too frequently, it can cause performance issues and impact the overall health of the Elasticsearch cluster. This incident requires investigation to determine the root cause of the frequent garbage collection and implement a solution to prevent it from happening again in the future.

Parameters

Debug

Check Elasticsearch logs for GC activity

Check Elasticsearch JVM heap usage

Check Elasticsearch cluster health

Check Elasticsearch node stats

Check Elasticsearch index stats

Repair

Increase heap space allocated to Elasticsearch to prevent frequent garbage collection.

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.