Skip to content
English
  • There are no suggestions because the search field is empty.

Cassandra does not start or gives an exception error "java.lang.OutOfMemoryError: Java heap space

Solution:

 

  1. Download all OCC services
  2. Download Cassandra and change the MAX_HEAP_SIZE and HEAP _NEWSIZE parameters by uncommenting the # in /etc/cassandra/cassandra-env.sh  
    1. MAX_HEAP_SIZE="16G"

    2. HEAP _NEWSIZE="4096M"

  3. Start Cassandra and check nodetool status which comes up ok.
  4. Start all services in the environment.
  5. Confirm that the platform is OK, log in as administrator.
  6. Pass job_repair to repair inconsistent interactions 
  7. In order for the change to be persistent in the next Chef execution and not be lost, the change must also be made to the Cassandra data_bag:
    1. Make a backup of the file before editing it.
    2. In the file /etc/inconcert/chef/data_bags/cassandra_clusters/default.json
    3. Add the lines with the same values ​​entered in point 2 : 

      "max_heap_size" :"16G",
      "heap_new_size" : "4096M"