mirror of https://github.com/apache/cassandra
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:
parent
ca8fa16c5e
commit
f75f107878
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue