Skip to content

Commit 983c4d7

Browse files
authored
Setting number of sharedArenaMaxPermits to 1 (opensearch-project#19503)
Signed-off-by: Ankit Jain <jainankitk@apache.org>
1 parent 48b08fb commit 983c4d7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
101101
- Implement SslHandler retrieval logic for transport-reactor-netty4 plugin ([#19458](https://github.com/opensearch-project/OpenSearch/pull/19458))
102102
- Cache serialised cluster state based on cluster state version and node version.([#19307](https://github.com/opensearch-project/OpenSearch/pull/19307))
103103
- Fix stats API in store-subdirectory module's SubdirectoryAwareStore ([#19470](https://github.com/opensearch-project/OpenSearch/pull/19470))
104+
- Setting number of sharedArenaMaxPermits to 1 ([#19503](https://github.com/opensearch-project/OpenSearch/pull/19503))
104105
- Handle negative search request nodes stats ([#19340](https://github.com/opensearch-project/OpenSearch/pull/19340))
105106
- Remove unnecessary iteration per-shard in request cache cleanup ([#19263](https://github.com/opensearch-project/OpenSearch/pull/19263))
106107

distribution/src/config/jvm.options

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,8 @@ ${error.file}
8686

8787
21-:-javaagent:agent/opensearch-agent.jar
8888
21-:--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED
89+
90+
# For cases with high memory-mapped file counts, a lower value can improve stability and
91+
# prevent issues like "leaked" maps or performance degradation. A value of 1 effectively
92+
# disables the shared Arena pooling and uses a confined Arena for each MMapDirectory
93+
-Dorg.apache.lucene.store.MMapDirectory.sharedArenaMaxPermits=1

0 commit comments

Comments
 (0)