Cassandra:The stack size specified is too small, Specify at least 228k

前端 未结 1 1822
暗喜
暗喜 2021-02-19 00:59

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.j         


        
1条回答
  •  深忆病人
    2021-02-19 01:42

    I have fixed it by editing file /etc/cassandra/cassandra-env.sh

    I have changed JVM_OPTS="$JVM_OPTS -Xss180k" to 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.

    0 讨论(0)
提交回复
热议问题