// troubleshooting guide · opensearch

OpenSearch High JVM Memory Pressure

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

RUNBOOK · opensearch/high-jvm-memory-pressure4 FIXES

// quick answer

Keep JVM memory pressure below about 80%. Reduce shard count, avoid aggregating on text fields, clear fielddata and scale nodes.

Most likely fix: Reduce shard overhead

How to fix it

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

  1. FIX 1Reduce shard overhead

    1. 01Delete or merge old indices
    2. 02Use shrink or reindex into fewer shards
    3. 03Use ISM policies to remove unused indexes
    Did this fix it?
  2. FIX 2Clear fielddata

    1. 01POST my-index/_cache/clear?fielddata=true (can disrupt running queries)
    Did this fix it?
  3. FIX 3Fix mappings and queries

    1. 01Aggregate on keyword fields, not text
    2. 02Avoid leading wildcards and huge date ranges
    Did this fix it?
  4. FIX 4Scale

    1. 01Add data nodes or use a larger instance type
    2. 02Keep max heap at 32 GB or less per node
    Did this fix it?

Symptoms

JVMMemoryPressure stays high, GC pauses grow, requests slow or are rejected, and on Amazon's service writes are blocked at 92% for 30 minutes.

Why it happens

  • C-01Too many shards
  • C-02Aggregations or sorting on text fields (fielddata)
  • C-03Wildcard or wide time-range queries
  • C-04Unbalanced shard allocation
  • C-05Instance type too small for load

// this guide also covers

  • opensearch jvm memory pressure
  • opensearch high heap usage
  • opensearch jvm pressure 92%

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 slow, laggy or resource-hungry guides →

Other OpenSearch errors

All 11 OpenSearch errors and fixes →