java.lang.OutOfMemoryError: Java heap space

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips


The heap space allocated to the Cassandra node ran out due to high load and low memory allocation. The surefire solution is to increase the amount of RAM given to the Cassandra process (determined by the launcher script and the total memory in the system).

Solutions on the web

java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.(
at java.nio.ByteBuffer.allocate(

Users with the same issue

15 times, 3 weeks ago
Once, 2 months ago
3 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Once, 1 year ago
15 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.