I'm getting this error when starting cassandra
after upgrade. Any idea?
我在升级后启动cassandra时出现了这个错误。任何想法?
# cassandra -f
xss = -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities
-XX:ThreadPriorityPolicy=42 -Xms1920M -Xmx1920M -Xmn200M -XX:+HeapDumpOnOutOfMemoryError -Xss180k
The stack size specified is too small, Specify at least 228k
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
1 个解决方案
#1
29
I have fixed it by editing /etc/cassandra/cassandra-env.sh
我通过编辑/etc/cassandra/cassandra-env.sh来修复它
I have changed JVM_OPTS="$JVM_OPTS -Xss180k"
to JVM_OPTS="$JVM_OPTS -Xss256k"
我将JVM_OPTS="$JVM_OPTS -Xss180k"改为JVM_OPTS="$JVM_OPTS -Xss256k"
and it worked.
它工作。
Basically the value of parameter Xss
determines stack size. As the error indicates, It is too small. Just by increasing Xss will solve the problem. It was 180K before and I have increased to 256K. It can be different in different machines according to the size of database.
基本上,参数Xss的值决定堆栈大小。如错误所示,它太小了。只要增加Xss就能解决问题。以前是180K,现在增加到256K。它可以根据数据库的大小在不同的机器上不同。
#1
29
I have fixed it by editing /etc/cassandra/cassandra-env.sh
我通过编辑/etc/cassandra/cassandra-env.sh来修复它
I have changed JVM_OPTS="$JVM_OPTS -Xss180k"
to JVM_OPTS="$JVM_OPTS -Xss256k"
我将JVM_OPTS="$JVM_OPTS -Xss180k"改为JVM_OPTS="$JVM_OPTS -Xss256k"
and it worked.
它工作。
Basically the value of parameter Xss
determines stack size. As the error indicates, It is too small. Just by increasing Xss will solve the problem. It was 180K before and I have increased to 256K. It can be different in different machines according to the size of database.
基本上,参数Xss的值决定堆栈大小。如错误所示,它太小了。只要增加Xss就能解决问题。以前是180K,现在增加到256K。它可以根据数据库的大小在不同的机器上不同。