From c56218a41fe547574ad7357751e4d95c82a79aca Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Sun, 29 Apr 2012 17:16:41 +0300 Subject: [PATCH] JDK 7 requires minimum of 256k stack size, update scripts to set it, closes #1892. --- bin/elasticsearch.bat | 2 +- bin/elasticsearch.in.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/elasticsearch.bat b/bin/elasticsearch.bat index f344dc6c843..f894d14a3b8 100644 --- a/bin/elasticsearch.bat +++ b/bin/elasticsearch.bat @@ -29,7 +29,7 @@ if NOT "%ES_HEAP_NEWSIZE%" == "" ( set JAVA_OPTS=%JAVA_OPTS% -Xmn%ES_HEAP_NEWSIZE% ) -set JAVA_OPTS=%JAVA_OPTS% -Xss160k +set JAVA_OPTS=%JAVA_OPTS% -Xss256k REM Enable aggressive optimizations in the JVM REM - Disabled by default as it might cause the JVM to crash diff --git a/bin/elasticsearch.in.sh b/bin/elasticsearch.in.sh index ed32577e0d5..e6d3d4ecca9 100644 --- a/bin/elasticsearch.in.sh +++ b/bin/elasticsearch.in.sh @@ -24,7 +24,7 @@ if [ "x$ES_HEAP_NEWSIZE" != "x" ]; then fi # reduce the per-thread stack size -JAVA_OPTS="$JAVA_OPTS -Xss160k" +JAVA_OPTS="$JAVA_OPTS -Xss256k" # Force the JVM to use IPv4 stack # JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"