Skip to content

Commit cc21fba

Browse files
authored
Bypass MMap arena grouping (#93)
Reflects elastic/elasticsearch#135012.
1 parent b6855b3 commit cc21fba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cars/v1/vanilla/templates/config/jvm.options

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
# Lucene 10 testing: apply MADV_NORMAL advice to enable more aggressive readahead
7272
-Dorg.apache.lucene.store.defaultReadAdvice=normal
7373

74+
# Lucene provides a mechanism for shared mmapped arenas to be referenced between multiple threads
75+
# this is to get around potential performance issues when closing shared arenas on many threads
76+
# default to 1 to disable this feature
77+
-Dorg.apache.lucene.store.MMapDirectory.sharedArenaMaxPermits=1
78+
7479
## heap dumps
7580

7681
# generate a heap dump when an allocation from the Java heap fails

0 commit comments

Comments
 (0)