1

I installed Apache Cassandra with Zulu JDK 8 on an M1 Mac. Every time I try to start a server with ./cassandra -f in the bin folder I get an error saying,

The stack size specified is too small, Specify at least 384k
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Based on the error message I followed this question's solution,

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

And tried to edit the /etc/cassandra/cassandra-env.sh config file but I don't find a JVM_OPTS="$JVM_OPTS -Xss <...>" line there, is there something else I should be editing? I'm a beginner trying to setup Cassandra for the first time.

Thanks in advance.

Akash Sonthalia
  • 362
  • 2
  • 12

1 Answers1

2

Thanks to @Andrew,

I could find the stack size declaration in the jvm.options file, under GENERAL JVM SETTINGS.

Changing,

# Per-thread stack size.

from -Xss256k to -Xss400k did the trick.

Andrew
  • 26,629
  • 5
  • 63
  • 86
Akash Sonthalia
  • 362
  • 2
  • 12