> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/database/cassandra/gc-outofmemoryerror.md).

# GC OutOfMemoryError

### Error:

```java
via
[{:type java.lang.OutOfMemoryError
:message GC overhead limit exceeded
:at [java.io.ObjectInputStream defaultReadFields ObjectInputStream.java 2426]}]
```

### Solution:

* This is usually due to the JVM. It does not have enough memory to use the Garbage Collection properly
* The easiest solution would be to increase the JVM RAM

```bash
# Open File
vim /etc/datastax-agent/datastax-agent-env.sh
```

* Modify `JVM_OPTS` parameter

```bash
JVM_OPTS=-Xmx4096M
```
