High heap usage

JVM heap usage on a node is at or near its configured maximum. Near-cap heap slows search and indexing, increases garbage collection, and raises the chance the node becomes unresponsive or leaves the cluster.

Note

For a complete list of insights, refer to AutoOps insights.

Field Value
Component Elasticsearch
Severity Medium
Scope Node
Domains memory, stability

You can customize these settings to adjust when AutoOps detects this event and presents the insight. Refer to AutoOps event settings for details.

The default customization settings are:

Setting Type Default
High heap threshold percent Percentage 10
Successive samples for high heap Integer 3
Search queue threshold Integer 5
Search latency threshold (ms) Integer 250
Write queue threshold Integer 1
Index latency threshold (ms) Integer 80
Tip

Raising these thresholds reduces noise but delays detection. Lowering them triggers the insight sooner but can increase alerts during minor blips.

The following is an example of what you might see when this insight is triggered. Real insights use live data and links from your deployment or cluster.

Heap usage is high on es-data-01 and es-data-02. Heap used: 30. Current max heap size: 500 GB GB.

  • Indices with high search activity: logs-prod-000045

  • Indices with high indexing activity: logs-prod-000045

Note

AutoOps shows different recommendations depending on how their conditions match your deployment or cluster.

Each Elasticsearch node runs on a JVM with a configured heap size. Heap holds indexing buffers, query state, caches, and other in-process structures. When usage stays near the maximum, the collector works harder and pauses grow.

Sustained high heap can slow search and indexing, trip circuit breakers, and in severe cases make the node unresponsive or disconnect from the cluster. Common drivers include expensive queries, heavy aggregations, large field data, and heap sized too small for the workload.

High JVM memory pressure