Skip to content

Commit bdd7072

Browse files
jainankitkPeter Alfonsi
authored andcommitted
Setting number of sharedArenaMaxPermits to 1 (opensearch-project#19503)
Signed-off-by: Ankit Jain <[email protected]>
1 parent 2faadcd commit bdd7072

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

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

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)