本文介绍了Cassandra:指定的堆栈大小太小,至少指定228k的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
升级后启动 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
堆栈指定的大小太小,至少指定228k
错误:无法创建Java虚拟机。
错误:发生了致命异常。程序将退出。
解决方案
我已经通过编辑 /etc/cassandra/cassandra-env.sh
我更改了 JVM_OPTS =$ JVM_OPTS -Xss180k
到 JVM_OPTS =$ JVM_OPTS -Xss256k
p>
I'm getting this error when starting cassandra
after upgrade. Any idea?
# 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.
解决方案
I have fixed it by editing /etc/cassandra/cassandra-env.sh
I have changed JVM_OPTS="$JVM_OPTS -Xss180k"
to JVM_OPTS="$JVM_OPTS -Xss256k"
and it worked.
这篇关于Cassandra:指定的堆栈大小太小,至少指定228k的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!