Cassandra issues. Increasing memory for Cassandra.

Overview:

This article describes how to resolve 70% of issues related to Apache Cassandra that is bundled with Upsource and used for data storage.

Symptoms:

  • Cassandra gets restarted on a regular basis
  • New commits are not getting indexed
  • Some (all) revisions are stuck in "indexing in progress" state

Solution:

Our statistics show that the most common reason for Cassandra failures is lack of memory assigned to it. Here are the steps on how to increase it:

  1. Stop Upsource with <upsource_home>/bin/upsource.sh stop
  2. Set new Xmx value with <upsource_home>/apps/cassandra/bin/cassandra.sh configure -J-Xmx5000m
  3. Start Upsource with <upsource_home>/bin/upsource.sh start

Note: We don't recommend setting Xmx value for more than 8 GBs.

To view current JVM options for a Cassandra, use the following command:

<upsource_home>/apps/cassandra/bin/cassandra.sh list jvm-options

If this didn't help, please submit a request with attached logs to the Upsource team.

1 out of 3 found this helpful
1 comment
Avatar
Permanently deleted user

Hi, 

 

I have been trying to solve this Cassandra issue on Upsource, Cassandra still fails to run under Upsource. 

Regards, 

Edwin

Edited by Permanently deleted user
0

Please sign in to leave a comment.

Have more questions?

Submit a request