Browse code

[core] BM-14968 Fix: limit NIO direct buffers to prevent replication memory issues with big emails (link: https://www.evanjones.ca/java-bytebuffer-leak.html and https://www.oracle.com/technetwork/java/javase/8u102-relnotes-3021767.html?printOnly=1 )

Thomas Cataldo authored on 15/07/2019 17:21:09
Showing 1 changed files
... ...
@@ -24,6 +24,7 @@ product=`basename $0`
24 24
 curdir=`dirname $0`
25 25
 pidfile=$1
26 26
 
27
+export BM_JVM_CUSTOM_OPTS="-Djdk.nio.maxCachedBufferSize=262144"
27 28
 export DEFAULT_MEM=128
28 29
 source ${curdir}/equinox-systemd.lib ${product} ${pidfile}
29 30