OpenSearch 3.5.0 → 3.7.0 upgrade: Parent circuit breaker failures during performance sanity testing

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 3.7.0

Describe the issue:

We have a three-node OpenSearch cluster with the following topology in both deployments:

Node type Number of nodes Responsibility
Client node 1 Receives client requests and coordinates search operations
Cluster manager node 1 Manages cluster state and coordination
Data node 1 Stores index data and executes shard-level operations

The same logical topology is used for both OpenSearch 3.5.0 and 3.7.0. The client node is where we are observing repeated parent circuit breaker exceptions.

Test scenario and workload:

We are running a Performance Sanity Test suite for the Response use case, using the Elasticsearch REST client v7.0.0.

The test performs bulk create/sync/audit operations for up to 250 intents.

Load conditions are unchanged between the two OpenSearch versions. We are using the same test scenario and client version, and the test works with OpenSearch 3.5.0 but encounters failures after upgrading to 3.7.0.

Resource Configuration:

3.5.0

[
  {
    "pod": "automation-infra-indexsearch-client-6d97bcc569-lt55d",
    "container": "is-client",
    "chart": "indexsearch-14.0.0",
    "app_version": "3.5.0",
    "image": "*****",
    "imageID": "*****",
    "restarts": 0,
    "resources": {
      "limits": {
        "cpu": "500m",
        "ephemeral-storage": "2Gi",
        "memory": "2Gi"
      },
      "requests": {
        "cpu": "100m",
        "ephemeral-storage": "200Mi",
        "memory": "1500Mi"
      }
    },
    "java_opts": "-Xms1g -Xmx1g -Dlog4j2.formatMsgNoLookups=true"
  },
  {
    "pod": "automation-infra-indexsearch-data-0",
    "container": "is-data",
    "chart": "indexsearch-14.0.0",
    "app_version": "3.5.0",
    "image": "****
    "imageID": "****
    "restarts": 0,
    "resources": {
      "limits": {
        "cpu": "1500m",
        "ephemeral-storage": "6Gi",
        "memory": "6Gi"
      },
      "requests": {
        "cpu": "300m",
        "ephemeral-storage": "200Mi",
        "memory": "4Gi"
      }
    },
    "java_opts": "-Xms3g -Xmx3g -Dlog4j2.formatMsgNoLookups=true"
  },
  {
    "pod": "automation-infra-indexsearch-manager-0",
    "container": "is-manager",
    "chart": "indexsearch-14.0.0",
    "app_version": "3.5.0",
    "image": "****",
    "imageID": "****",
    "restarts": 0,
    "resources": {
      "limits": {
        "cpu": "500m",
        "ephemeral-storage": "2Gi",
        "memory": "2Gi"
      },
      "requests": {
        "cpu": "100m",
        "ephemeral-storage": "200Mi",
        "memory": "1500Mi"
      }
    },
    "java_opts": "-Xms1g -Xmx1g -Dlog4j2.formatMsgNoLookups=true"
  }
]

3.7.0

  {
    "pod": "infra-indexsearch-client-579f584fd7-9sb7h",
    "container": "is-client",
    "phase": "Running",
    "ready": [
      true,
      0
    ],
    "image": "***",
    "resources": {
      "limits": {
        "cpu": "1",
        "ephemeral-storage": "4Gi",
        "memory": "4Gi"
      },
      "requests": {
        "cpu": "500m",
        "ephemeral-storage": "200Mi",
        "memory": "2Gi"
      }
    },
    "java": {
      "OPENSEARCH_JAVA_OPTS": "-Xms2g -Xmx2g -Dlog4j2.formatMsgNoLookups=true"
    }
  },
  {
    "pod": "infra-indexsearch-dashboards-6556b48b5c-twfjp",
    "container": "dashboards",
    "phase": "Running",
    "ready": [
      true,
      0
    ],
    "image": "****",
    "resources": {
      "limits": {
        "cpu": "1",
        "ephemeral-storage": "1500Mi",
        "memory": "5Gi"
      },
      "requests": {
        "cpu": "500m",
        "ephemeral-storage": "500Mi",
        "memory": "1Gi"
      }
    },
    "java": {}
  },
  {
    "pod": "infraindexsearch-data-0",
    "container": "is-data",
    "phase": "Running",
    "ready": [
      true,
      0
    ],
    "image": "****",
    "resources": {
      "limits": {
        "cpu": "3",
        "ephemeral-storage": "10Gi",
        "memory": "10Gi"
      },
      "requests": {
        "cpu": "500m",
        "ephemeral-storage": "200Mi",
        "memory": "8Gi"
      }
    },
    "java": {
      "OPENSEARCH_JAVA_OPTS": "-Xms5g -Xmx5g -Dlog4j2.formatMsgNoLookups=true"
    }
  },
  {
    "pod": "infra-indexsearch-manager-0",
    "container": "is-manager",
    "phase": "Running",
    "ready": [
      true,
      0
    ],
    "image": "****",
    "resources": {
      "limits": {
        "cpu": "1",
        "ephemeral-storage": "2Gi",
        "memory": "2Gi"
      },
      "requests": {
        "cpu": "100m",
        "ephemeral-storage": "200Mi",
        "memory": "1500Mi"
      }
    },
    "java": {
      "OPENSEARCH_JAVA_OPTS": "-Xms1g -Xmx1g -Dlog4j2.formatMsgNoLookups=true"
    }
  }
]

Relevant Logs or Screenshots:

Error 1:

[parent] Data too large, data for [<reduce_aggs>] would be
[2045799219/1.9gb], which is larger than the limit of
[2040109465/1.8gb], real usage: [2045799152/1.9gb],
new bytes reserved: [67/67b],
usages [request=772/772b, fielddata=0/0b,
in_flight_requests=33566/32.7kb]

Error 2:

[parent] Data too large, data for [<http_request>] would be
[2114804076/1.9gb], which is larger than the limit of
[2040109465/1.8gb], real usage: [2114803152/1.9gb],
new bytes reserved: [924/924b],
usages [request=0/0b, fielddata=0/0b,
in_flight_requests=35488/34.6kb]

Observation:

  • The same performance sanity-test workload succeeds on OpenSearch 3.5.0 but fails on 3.7.0.

  • Core circuit breaker thresholds are unchanged.

  • The 3.7.0 client node has substantially higher absolute heap usage and many more breaker trips in the captured statistics.

  • Failures occur in both aggregation-reduction and HTTP-request allocation contexts.

  • Increasing the client heap from 1 GiB to 2 GiB has not resolved the problem, although 1 GiB was working fine with 3.5.0 during the regression test.

  • We found that quite a few new configuration parameters were added in the cluster configuration differences, and I suspect one of them is the cause; perhaps some configuration tuning is required.

search:
  aggregations:
    terms:
      max_precompute_cardinality: 30000
  • Fix terms aggregation performance regression on high-cardinality fields by adding a max cardinality setting (#20623)
  • The following parameters were added in the 3.7.0 cluster configuration:
admission_control.cluster_admin.native_memory_usage.limit: 95
admission_control.indexing.native_memory_usage.limit: 95
admission_control.search.native_memory_usage.limit: 95
admission_control.transport.native_memory_usage.mode_override: disabled
cluster.pluggable.dataformat: 
cluster.pluggable.dataformat.enabled: false
cluster.pluggable.dataformat.restrict.allowlist: []
cluster.remote_store.state.cleanup.batch_size: 1000
cluster.remote_store.state.cleanup.max_batches: 3
cluster.remote_store.uploaded_segments_cleanup_threshold: 1000
cluster.restrict.pluggable.dataformat: false
cluster.tiering.filecache_active_threshold_percent: 90
cluster.tiering.jvm_usage_threshold_percent: 95
cluster.tiering.max_concurrent_hot_to_warm_requests: 200
cluster.tiering.max_concurrent_warm_to_hot_requests: 10
http.request_id.max_length: 128
index.store.data_locality: FULL
indices.memory.max_native_index_buffer_size: -1
indices.memory.min_native_index_buffer_size: 48mb
indices.memory.native_index_buffer_size: 5%
monitor.native_memory.refresh_interval: 1s
node.native_memory.buffer_percent: 0
node.native_memory.limit: 1696512081b
node.resource.tracker.global_native_memory_usage.window_duration: 30s
opensearch.experimental.feature.pluggable.dataformat.enabled: false
plugins.security.dfm_empty_overrides_all: false
search.aggregations.terms.max_precompute_cardinality: 30000
search_backpressure.node_duress.native_memory_limit: 0b
search_backpressure.node_duress.native_memory_threshold: 0.85
search_backpressure.search_shard_task.native_memory_percent_threshold: 0.05
search_backpressure.search_task.native_memory_percent_threshold: 0.05
thread_pool.merge.core: 1
thread_pool.merge.keep_alive: 5m
thread_pool.merge.max: 1
thread_pool.remote_download.core: 1
thread_pool.remote_download.keep_alive: 5m
thread_pool.remote_download.max: 2
tiering.service.prefetch.read_ahead.block_count: 4
tiering.service.prefetch.stored_fields.enabled: true
  • And the following configuration was present in 3.5.0 and removed in 3.7.0:
opensearch.experimental.feature.arrow.streams.enabled: false

Thank you for the support!

The numbers in your two errors already narrow it down quite a bit. The parent breaker uses real heap usage (`indices.breaker.total.use_real_memory` defaults to true), and its limit is 95% of the heap: 2040109465 bytes is exactly 95% of your 2 GB. At the moment of the trip, the accounted breakers are almost empty (request under 1 KB, fielddata 0, in-flight ~33 KB). So no single big request is the problem. Something else fills the coordinating node’s heap, or garbage isn’t collected fast enough, and any small allocation then trips the breaker.

I’d compare 3.5.0 and 3.7.0 on the client node under the same load:

```

GET _nodes//stats/jvm,breaker,indexing_pressure

GET _nodes//jvm?filter_path=**.version,**.vm_version,**.gc_collectors,**.input_arguments

```

- Old-gen usage after GC: if it keeps climbing and stays high after collections, something is retaining memory. If it drops back down, it’s mostly allocation rate and GC timing.

- `input_arguments` and `gc_collectors`: check whether the JVM version or the GC settings from `jvm.options` changed between your two images. Your `java_opts` only set the heap size, so the GC tuning comes from the image.

- `indexing_pressure`: your test is bulk-heavy, and a coordinating node holds the bulk bytes until the data node responds.

The most direct answer is a class histogram from the client pod during the test, on both versions:

```

jcmd GC.class_histogram | head -30

```

That shows which object types fill the heap, and the diff between 3.5.0 and 3.7.0 usually points straight at the cause.

About the new settings you listed: most of them are defaults for new features (remote store cleanup, tiering, pluggable data format, native-memory admission control), and none of them obviously holds heap on a coordinating-only node. I’d start from the histogram rather than toggling them one by one.

Hi @eywora ,

I captured and analysed the JFR recording from the affected client node. One of the prominent stack traces in the stack trace view is the following:

This stack accounts for approximately 2,194 samples (37.1%) in the JMC view.

GET /_nodes/stats/jvm,breaker,indexing_pressure 
{
  "_nodes": {
    "total": 3,
    "successful": 3,
    "failed": 0
  },
  "cluster_name": "default-infra",
  "nodes": {
    "ZvVMLNXASJK9tKOfwLtmNg": {
      "timestamp": 1793788361312,
      "name": "infra-indexsearch-data-0",
      "transport_address": "192.168.49.163:9300",
      "host": "192.168.49.163",
      "ip": "192.168.49.163:9300",
      "roles": [
        "data"
      ],
      "attributes": {
        "shard_indexing_pressure_enabled": "true"
      },
      "jvm": {
        "timestamp": 1793788361312,
        "uptime_in_millis": 338044483,
        "mem": {
          "heap_used_in_bytes": 890533936,
          "heap_used_percent": 16,
          "heap_committed_in_bytes": 5368709120,
          "heap_max_in_bytes": 5368709120,
          "non_heap_used_in_bytes": 259392504,
          "non_heap_committed_in_bytes": 304742400,
          "pools": {
            "young": {
              "used_in_bytes": 494927872,
              "max_in_bytes": 0,
              "peak_used_in_bytes": 3208642560,
              "peak_max_in_bytes": 0,
              "last_gc_stats": {
                "used_in_bytes": 0,
                "max_in_bytes": 0,
                "usage_percent": -1
              }
            },
            "old": {
              "used_in_bytes": 349702112,
              "max_in_bytes": 5368709120,
              "peak_used_in_bytes": 1197982544,
              "peak_max_in_bytes": 5368709120,
              "last_gc_stats": {
                "used_in_bytes": 349702112,
                "max_in_bytes": 5368709120,
                "usage_percent": 6
              }
            },
            "survivor": {
              "used_in_bytes": 45903952,
              "max_in_bytes": 0,
              "peak_used_in_bytes": 192937984,
              "peak_max_in_bytes": 0,
              "last_gc_stats": {
                "used_in_bytes": 45903952,
                "max_in_bytes": 0,
                "usage_percent": -1
              }
            }
          }
        },
        "threads": {
          "count": 77,
          "peak_count": 80
        },
        "gc": {
          "collectors": {
            "young": {
              "collection_count": 2382,
              "collection_time_in_millis": 68807
            },
            "G1 Concurrent GC": {
              "collection_count": 1560,
              "collection_time_in_millis": 27442
            },
            "old": {
              "collection_count": 0,
              "collection_time_in_millis": 0
            }
          }
        },
        "buffer_pools": {
          "mapped": {
            "count": 3141,
            "used_in_bytes": 6570678582,
            "total_capacity_in_bytes": 6570678582
          },
          "direct": {
            "count": 47,
            "used_in_bytes": 1730607,
            "total_capacity_in_bytes": 1730606
          },
          "mapped - 'non-volatile memory'": {
            "count": 0,
            "used_in_bytes": 0,
            "total_capacity_in_bytes": 0
          }
        },
        "classes": {
          "current_loaded_count": 29684,
          "total_loaded_count": 30878,
          "total_unloaded_count": 1194
        }
      },
      "breakers": {
        "request": {
          "limit_size_in_bytes": 3221225472,
          "limit_size": "3gb",
          "estimated_size_in_bytes": 16440,
          "estimated_size": "16kb",
          "overhead": 1,
          "tripped": 0
        },
        "fielddata": {
          "limit_size_in_bytes": 2147483648,
          "limit_size": "2gb",
          "estimated_size_in_bytes": 120384,
          "estimated_size": "117.5kb",
          "overhead": 1.03,
          "tripped": 0
        },
        "in_flight_requests": {
          "limit_size_in_bytes": 5368709120,
          "limit_size": "5gb",
          "estimated_size_in_bytes": 87,
          "estimated_size": "87b",
          "overhead": 2,
          "tripped": 0
        },
        "parent": {
          "limit_size_in_bytes": 5100273664,
          "limit_size": "4.7gb",
          "estimated_size_in_bytes": 890533936,
          "estimated_size": "849.2mb",
          "overhead": 1,
          "tripped": 0
        }
      },
      "indexing_pressure": {
        "memory": {
          "current": {
            "combined_coordinating_and_primary_in_bytes": 1543,
            "coordinating_in_bytes": 1543,
            "primary_in_bytes": 1575,
            "replica_in_bytes": 0,
            "all_in_bytes": 1543
          },
          "total": {
            "combined_coordinating_and_primary_in_bytes": 7953198851,
            "coordinating_in_bytes": 610951937,
            "primary_in_bytes": 7964068131,
            "replica_in_bytes": 0,
            "all_in_bytes": 7953198851,
            "coordinating_rejections": 0,
            "primary_rejections": 0,
            "replica_rejections": 0
          },
          "limit_in_bytes": 536870912
        }
      },
      "native_memory": {
        "total_estimated_bytes": 328679424
      }
    },
    "vkp4HlJIQQu025XCBD08VQ": {
      "timestamp": 1793788361311,
      "name": "infra-indexsearch-client-579f584fd7-9sb7h",
      "transport_address": "192.168.49.174:9300",
      "host": "192.168.49.174",
      "ip": "192.168.49.174:9300",
      "roles": [
        "ingest"
      ],
      "attributes": {
        "shard_indexing_pressure_enabled": "true"
      },
      "jvm": {
        "timestamp": 1793788361311,
        "uptime_in_millis": 338028087,
        "mem": {
          "heap_used_in_bytes": 252158800,
          "heap_used_percent": 11,
          "heap_committed_in_bytes": 2147483648,
          "heap_max_in_bytes": 2147483648,
          "non_heap_used_in_bytes": 216822912,
          "non_heap_committed_in_bytes": 257228800,
          "pools": {
            "young": {
              "used_in_bytes": 4194304,
              "max_in_bytes": 0,
              "peak_used_in_bytes": 1286602752,
              "peak_max_in_bytes": 0,
              "last_gc_stats": {
                "used_in_bytes": 0,
                "max_in_bytes": 0,
                "usage_percent": -1
              }
            },
            "old": {
              "used_in_bytes": 247964496,
              "max_in_bytes": 2147483648,
              "peak_used_in_bytes": 2004943096,
              "peak_max_in_bytes": 2147483648,
              "last_gc_stats": {
                "used_in_bytes": 246915920,
                "max_in_bytes": 2147483648,
                "usage_percent": 11
              }
            },
            "survivor": {
              "used_in_bytes": 0,
              "max_in_bytes": 0,
              "peak_used_in_bytes": 26738688,
              "peak_max_in_bytes": 0,
              "last_gc_stats": {
                "used_in_bytes": 0,
                "max_in_bytes": 0,
                "usage_percent": -1
              }
            }
          }
        },
        "threads": {
          "count": 50,
          "peak_count": 50
        },
        "gc": {
          "collectors": {
            "young": {
              "collection_count": 3645,
              "collection_time_in_millis": 76885
            },
            "G1 Concurrent GC": {
              "collection_count": 2302,
              "collection_time_in_millis": 80318
            },
            "old": {
              "collection_count": 9,
              "collection_time_in_millis": 2947
            }
          }
        },
        "buffer_pools": {
          "mapped": {
            "count": 0,
            "used_in_bytes": 0,
            "total_capacity_in_bytes": 0
          },
          "direct": {
            "count": 18,
            "used_in_bytes": 1170850,
            "total_capacity_in_bytes": 1170849
          },
          "mapped - 'non-volatile memory'": {
            "count": 0,
            "used_in_bytes": 0,
            "total_capacity_in_bytes": 0
          }
        },
        "classes": {
          "current_loaded_count": 28201,
          "total_loaded_count": 30596,
          "total_unloaded_count": 2395
        }
      },
      "breakers": {
        "request": {
          "limit_size_in_bytes": 1288490188,
          "limit_size": "1.1gb",
          "estimated_size_in_bytes": 0,
          "estimated_size": "0b",
          "overhead": 1,
          "tripped": 0
        },
        "fielddata": {
          "limit_size_in_bytes": 858993459,
          "limit_size": "819.1mb",
          "estimated_size_in_bytes": 0,
          "estimated_size": "0b",
          "overhead": 1.03,
          "tripped": 0
        },
        "in_flight_requests": {
          "limit_size_in_bytes": 2147483648,
          "limit_size": "2gb",
          "estimated_size_in_bytes": 0,
          "estimated_size": "0b",
          "overhead": 2,
          "tripped": 0
        },
        "parent": {
          "limit_size_in_bytes": 2040109465,
          "limit_size": "1.8gb",
          "estimated_size_in_bytes": 252158800,
          "estimated_size": "240.4mb",
          "overhead": 1,
          "tripped": 6575
        }
      },
      "indexing_pressure": {
        "memory": {
          "current": {
            "combined_coordinating_and_primary_in_bytes": 0,
            "coordinating_in_bytes": 0,
            "primary_in_bytes": 0,
            "replica_in_bytes": 0,
            "all_in_bytes": 0
          },
          "total": {
            "combined_coordinating_and_primary_in_bytes": 7217066277,
            "coordinating_in_bytes": 7217066277,
            "primary_in_bytes": 0,
            "replica_in_bytes": 0,
            "all_in_bytes": 7217066277,
            "coordinating_rejections": 0,
            "primary_rejections": 0,
            "replica_rejections": 0
          },
          "limit_in_bytes": 214748364
        }
      },
      "native_memory": {
        "total_estimated_bytes": 203563008
      }
    },
    "f5DUxqEgSmq6aPabVECVQw": {
      "timestamp": 1793788361313,
      "name": "infra-indexsearch-manager-0",
      "transport_address": "192.168.49.167:9300",
      "host": "192.168.49.167",
      "ip": "192.168.49.167:9300",
      "roles": [
        "cluster_manager"
      ],
      "attributes": {
        "shard_indexing_pressure_enabled": "true"
      },
      "jvm": {
        "timestamp": 1793788361313,
        "uptime_in_millis": 338031772,
        "mem": {
          "heap_used_in_bytes": 398267664,
          "heap_used_percent": 37,
          "heap_committed_in_bytes": 1073741824,
          "heap_max_in_bytes": 1073741824,
          "non_heap_used_in_bytes": 216316096,
          "non_heap_committed_in_bytes": 239534080,
          "pools": {
            "young": {
              "used_in_bytes": 130023424,
              "max_in_bytes": 0,
              "peak_used_in_bytes": 642777088,
              "peak_max_in_bytes": 0,
              "last_gc_stats": {
                "used_in_bytes": 0,
                "max_in_bytes": 0,
                "usage_percent": -1
              }
            },
            "old": {
              "used_in_bytes": 258807056,
              "max_in_bytes": 1073741824,
              "peak_used_in_bytes": 699924480,
              "peak_max_in_bytes": 1073741824,
              "last_gc_stats": {
                "used_in_bytes": 193795344,
                "max_in_bytes": 1073741824,
                "usage_percent": 18
              }
            },
            "survivor": {
              "used_in_bytes": 9437184,
              "max_in_bytes": 0,
              "peak_used_in_bytes": 36700160,
              "peak_max_in_bytes": 0,
              "last_gc_stats": {
                "used_in_bytes": 9437184,
                "max_in_bytes": 0,
                "usage_percent": -1
              }
            }
          }
        },
        "threads": {
          "count": 46,
          "peak_count": 109
        },
        "gc": {
          "collectors": {
            "young": {
              "collection_count": 3630,
              "collection_time_in_millis": 73606
            },
            "G1 Concurrent GC": {
              "collection_count": 2326,
              "collection_time_in_millis": 88479
            },
            "old": {
              "collection_count": 0,
              "collection_time_in_millis": 0
            }
          }
        },
        "buffer_pools": {
          "mapped": {
            "count": 0,
            "used_in_bytes": 0,
            "total_capacity_in_bytes": 0
          },
          "direct": {
            "count": 17,
            "used_in_bytes": 1326541,
            "total_capacity_in_bytes": 1326540
          },
          "mapped - 'non-volatile memory'": {
            "count": 0,
            "used_in_bytes": 0,
            "total_capacity_in_bytes": 0
          }
        },
        "classes": {
          "current_loaded_count": 27100,
          "total_loaded_count": 29313,
          "total_unloaded_count": 2213
        }
      },
      "breakers": {
        "request": {
          "limit_size_in_bytes": 644245094,
          "limit_size": "614.3mb",
          "estimated_size_in_bytes": 0,
          "estimated_size": "0b",
          "overhead": 1,
          "tripped": 0
        },
        "fielddata": {
          "limit_size_in_bytes": 429496729,
          "limit_size": "409.5mb",
          "estimated_size_in_bytes": 0,
          "estimated_size": "0b",
          "overhead": 1.03,
          "tripped": 0
        },
        "in_flight_requests": {
          "limit_size_in_bytes": 1073741824,
          "limit_size": "1gb",
          "estimated_size_in_bytes": 87,
          "estimated_size": "87b",
          "overhead": 2,
          "tripped": 0
        },
        "parent": {
          "limit_size_in_bytes": 1020054732,
          "limit_size": "972.7mb",
          "estimated_size_in_bytes": 398267664,
          "estimated_size": "379.8mb",
          "overhead": 1,
          "tripped": 0
        }
      },
      "indexing_pressure": {
        "memory": {
          "current": {
            "combined_coordinating_and_primary_in_bytes": 0,
            "coordinating_in_bytes": 0,
            "primary_in_bytes": 0,
            "replica_in_bytes": 0,
            "all_in_bytes": 0
          },
          "total": {
            "combined_coordinating_and_primary_in_bytes": 4790837,
            "coordinating_in_bytes": 4790837,
            "primary_in_bytes": 0,
            "replica_in_bytes": 0,
            "all_in_bytes": 4790837,
            "coordinating_rejections": 0,
            "primary_rejections": 0,
            "replica_rejections": 0
          },
          "limit_in_bytes": 107374182
        }
      },
      "native_memory": {
        "total_estimated_bytes": 175841280
      }
    }
  }
}

Thanks, this helps a lot. I can’t prove the cause yet, but your stats and the JFR stack point in the same direction, and there’s a cheap way to test it.

**Probably not a leak.** On the client node, old gen peaked at about 93% of the heap but is back to 11% after the last GC, with 6,575 parent breaker trips. That looks more like short-lived allocations outrunning G1 than memory being retained. Those stats look like they were taken while idle, so a capture during the test would confirm it.

**The stack.** `setPhaseResourceUsages` parses the `TASK_RESOURCE_USAGE` header as JSON on every shard response. That method is practically the same in 3.5.0 and 3.7.0, but the library under it isn’t: `JsonXContent` moved from Jackson 2.20 to Jackson 3.1 ([#21029]( Support Jackson 3.x release line by reta · Pull Request #21029 · opensearch-project/OpenSearch · GitHub )), and the default buffer pool changed from thread-local to a deque. The 3.7.0 method also never closes its parser, so its buffers and field-name table aren’t handed back after each parse.

3.8.0 replaced this JSON with a binary header ([#21230]( Use binary serde for resource usage headers by dzane17 · Pull Request #21230 · opensearch-project/OpenSearch · GitHub )). That PR is about CPU, not heap, so I wouldn’t call it a confirmed fix for your case.

**The test.** On your test cluster only, turn the tracking off and rerun the suite:

```

PUT _cluster/settings

{ “persistent”: { “task_resource_tracking.enabled”: false } }

```

Without tracking, data nodes don’t send the header, so this parsing doesn’t run. Set it back to `null` afterwards, because search backpressure uses the same tracking. Running the suite on 3.8 or later is the other useful comparison.

If the trips disappear, that’s worth a GitHub issue with your JFR attached.

Two questions:

- Is that 37% from execution samples or allocation samples? Only allocation samples tie it directly to the heap, so the JMC memory view would be the most useful next screenshot.

- About how many shards does a typical search in the test hit?

One correction to my earlier suggestion: `GC.class_histogram` forces a full GC and only counts live objects, so it won’t show short-lived garbage. Use `jcmd GC.class_histogram -all` instead.

Ahmed

Some more findings from jfr -

Memory view

3.7.0

3.5.0

Thanks, the memory view helps, though it supports only part of what I suggested.

**What fits.** On 3.7.0, 37.5% of the samples (2,218) are array copies inside Jackson 3’s symbol table, reached from `TaskResourceTrackingService` via `AbstractSearchAsyncAction`. I don’t see that path in your 3.5.0 list, but the top of that screenshot is cropped, so please check it isn’t just above `HashMap`.

**What doesn’t fit yet.**

- Each copy is small. From the source, it’s about 3 KB when a parser first adds a name to its table, so filling 2 GB this way would take a very high rate of shard responses.

- That table code is nearly identical in Jackson 2.20.1 and 3.1.3, and the parser is left unclosed in both 3.5.0 and 3.7.0. So the code alone doesn’t explain why 3.7.0 differs.

- Your 3.7.0 timeline climbs to about 2 GiB over roughly 6.5 minutes with no GC shown in between, about 5 MiB/s. 3.5.0 runs at roughly 90 MiB/s with a GC every few seconds. The bigger heap explains fewer GCs, but not 20x less allocation under the same load, so this doesn’t look like the “allocations outrunning G1” I suggested. Either that window isn’t the busy part of the test, or G1 isn’t collecting until the heap is nearly full.

`G1OverLimitStrategy` in your 3.7.0 list is probably a side effect. It only runs once the heap is over the parent limit, and it allocates on purpose to force a GC.

**What would settle it:**

1. The tracking-off test on your test cluster, if you haven’t run it yet.

2. The JVM flags from the client node on both versions, to rule out a GC settings change in the image:

```

GET _nodes//jvm?filter_path=**.version,**.input_arguments,**.gc_collectors

```

3. The 3.7.0 timeline around the timestamp of a breaker exception from the logs. Does the heap climb steadily there too?

4. About how many shards a typical search in the test hits.

Ahmed