Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 7 Materials and Homework.

Registrations still open!


question

preethikoluvaiya23_193353 avatar image
preethikoluvaiya23_193353 asked ·

How do I deal with cassandra-stress crashing with JVM errors?

Hi,

Firstly, thanks for clarifying all my doubts raised so far.

Today while using, cassandra-stress tool to write several thousand records to node, the process aborted in- between and got error message that java run time environment got crashed.

And also, I am getting this error very frequently. Can you please give me permanent fix to this issue and my write query is half-way stopped, So, how to rolll back my commit-log to initial stage, so that I can run cassandra-stress again. Thanks in advance.


workshopcassandra-stress
capture3.jpg (70.3 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

There isn't enough information in your post to diagnose the problem. You'll need to provide relevant information such as

  • Cassandra version
  • cluster topology/configuration (e.g. 3 nodes, 16 cores, 64GB RAM)
  • full command you're running

The screenshot you posted also shows that a hs_err_pid5971.log file got generated so you need to review that log for clues.

In relation to this question:

how to rolll back my commit-log to initial stage, so that I can run cassandra-stress again

You just need to TRUNCATE the table you were stress-testing. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.