Skip to content

Commit

Permalink
JDK 7 requires minimum of 256k stack size, update scripts to set it, c…
Browse files Browse the repository at this point in the history
…loses elastic#1892.
  • Loading branch information
kimchy committed Apr 29, 2012
1 parent b379225 commit c56218a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/elasticsearch.bat
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/elasticsearch.in.sh
Expand Up @@ -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"
Expand Down

0 comments on commit c56218a

Please sign in to comment.