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