only attempt to set thread stack size on Linux. Patch by Peter Schuller, reviewed by brandonwilliams for CASSANDRA-1508

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@997748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brandon Williams 2010-09-16 13:42:16 +00:00
parent ca8fa16c5e
commit f75f107878
1 changed files with 7 additions and 4 deletions

View File

@ -74,10 +74,13 @@ JVM_OPTS="$JVM_OPTS -Xms$MAX_HEAP_SIZE"
JVM_OPTS="$JVM_OPTS -Xmx$MAX_HEAP_SIZE"
JVM_OPTS="$JVM_OPTS -XX:+HeapDumpOnOutOfMemoryError"
# reduce the per-thread stack size to minimize the impact of Thrift
# thread-per-client. (Best practice is for client connections to
# be pooled anyway.)
JVM_OPTS="$JVM_OPTS -Xss128k"
if [ "`uname`" = "Linux" ] ; then
# reduce the per-thread stack size to minimize the impact of Thrift
# thread-per-client. (Best practice is for client connections to
# be pooled anyway.) Only do so on Linux where it is known to be
# supported.
JVM_OPTS="$JVM_OPTS -Xss128k"
fi
# GC tuning options.
JVM_OPTS="$JVM_OPTS -XX:+UseParNewGC"