diff --git a/bin/elasticsearch.in.sh b/bin/elasticsearch.in.sh index 56179a794e3..b3230b58184 100644 --- a/bin/elasticsearch.in.sh +++ b/bin/elasticsearch.in.sh @@ -17,6 +17,9 @@ JAVA_OPTS="$JAVA_OPTS -Xmx${ES_MAX_MEM}" # reduce the per-thread stack size JAVA_OPTS="$JAVA_OPTS -Xss128k" +# Force the JVM to use IPv4 stack +# JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true" + # Enable aggressive optimizations in the JVM # - Disabled by default as it might cause the JVM to crash # JAVA_OPTS="$JAVA_OPTS -XX:+AggressiveOpts"