// troubleshooting guide · opensearch

OpenSearch OutOfMemoryError and Circuit Breaker

Status
Ongoing
platforms:
Self-hosted, Amazon OpenSearch Service
updated:
November 15, 2026
reports:
2
Method
how we research
Share

RUNBOOK · opensearch/out-of-memory-circuit-breaker4 FIXES

// quick answer

A JVM OutOfMemoryError usually means a circuit breaker was hit. Find the heavy query or mapping, then reduce load or scale; raise breaker limits only with care.

Most likely fix: Identify the breaker

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Identify the breaker

    1. 01GET _nodes/stats/breaker
    2. 02GET _nodes/stats/jvm?pretty
    Did this fix it?
  2. FIX 2Lower memory demand

    1. 01Simplify aggregations
    2. 02Reduce bucket sizes
    3. 03Fix mapping explosions and fielddata on text
    Did this fix it?
  3. FIX 3Adjust settings carefully

    1. 01Tune indices.breaker.request.limit or indices.breaker.fielddata.limit only if the workload needs it
    2. 02Prefer adding memory over raising limits
    Did this fix it?
  4. FIX 4Scale out

    1. 01Add nodes or increase instance size so heap is under 32 GB per node
    Did this fix it?

Symptoms

Nodes crash or restart with OutOfMemoryError, or requests fail with circuit_breaking_exception.

Why it happens

  • C-01Parent breaker (default 95% of heap) exceeded
  • C-02Fielddata breaker (40%) from large fields
  • C-03Request breaker (60%) from big aggregations
  • C-04Heap too small or oversized shards

// this guide also covers

  • opensearch outofmemoryerror
  • opensearch circuit breaking exception
  • opensearch data too large

Still not working?

If OpenSearch keeps failing, you're not alone. See every OpenSearch problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch OpenSearch Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other OpenSearch errors

All 11 OpenSearch errors and fixes →