5

I'm new to Cassandra. Followed this link http://www.datastax.com/documentation/cassandra/2.0/webhelp/index.html#cassandra/install/installDeb_t.html to install Cassandra in Ubuntu virtual box of 1GB RAM.

Output of cassandra -f:

xss =  -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms501M -Xmx501M -Xmn100M -XX:+HeapDumpOnOutOfMemoryError -Xss256k
Unrecognized VM option 'UseCondCardMark'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Here, it shows out of memory error and it would be reason for not creating JVM. Can you please help on resolving this issue.

Thanks for any help.

cassandra-env.sh file:

# Per-thread stack size.
JVM_OPTS="$JVM_OPTS -Xss1500k"

echo "xss = $JVM_OPTS"
rajpy
  • 2,436
  • 5
  • 29
  • 43
  • Tried this http://stackoverflow.com/questions/16831724/error-when-starting-cassandra-prevents-launching. Increased stack size to -Xss1500k!. Still not working. – rajpy Nov 22 '13 at 09:44
  • can you copy your cassandra-env.sh here? especially the JVM_OPTS part – vishnu viswanath Nov 22 '13 at 09:45

2 Answers2

5

Remove

if [ "$JVM_VERSION" \> "1.7" ] ; then
    JVM_OPTS="$JVM_OPTS -XX:+UseCondCardMark"
fi

from your cassandra-env.sh.

vishnu viswanath
  • 3,794
  • 2
  • 36
  • 47
-3

Maybe your java version should be 1.8

kevin
  • 1