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

[Skip to content](https://knowledge.platx.me/platx-knowledge/cassandra-does-not-start-or-gives-an-exception-error-java.lang.outofmemoryerror-java-heap-space#main-content)

English

Show submenu for translations

![PlatX](https://knowledge.platx.me/hs-fs/hubfs/Plat-X---Logo-black%20copy.gif?width=4325&height=688&name=Plat-X---Logo-black%20copy.gif)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- Contact us

 Contact us

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Platx Knowledge Base](https://knowledge.platx.me/platx-knowledge?hsLang=en)
2. [Troubleshooting](https://knowledge.platx.me/platx-knowledge/troubleshooting?hsLang=en)

# 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"

- [Troubleshooting](https://knowledge.platx.me/platx-knowledge/troubleshooting?hsLang=en)
- [Guides](https://knowledge.platx.me/platx-knowledge/guides?hsLang=en)
- [Technical Documentation](https://knowledge.platx.me/platx-knowledge/technical-documentation?hsLang=en)
- [Training](https://knowledge.platx.me/platx-knowledge/training?hsLang=en)
- [To do later](https://knowledge.platx.me/platx-knowledge/to-do-later?hsLang=en)

[![PlatX](https://knowledge.platx.me/hs-fs/hubfs/Plat-X---Logo-black%20copy.gif?width=4325&height=688&name=Plat-X---Logo-black%20copy.gif "PlatX")](https://knowledge.platx.me/?hsLang=en)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026,