From 49d976fc4113917024ea65604627d9d4f7ab0736 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Fri, 23 Sep 2011 00:57:57 +0300 Subject: [PATCH] add a commented out option to force the JVM to use IPv4 stack --- bin/elasticsearch.in.sh | 3 +++ 1 file changed, 3 insertions(+) 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"