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

via Coderanch by kumarjit banerjee, 1 year ago
via Oracle Community by 623897, 1 year ago
via GitHub by thomasmueller
, 1 year ago
via YouTrack by Unknown author, 1 year ago
via Stack Overflow by Divya Gowda
, 1 year ago
java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:39)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
at com.sun.tools.javac.util.DefaultFileManager$ByteBufferCache.get(DefaultFileManager.java:744)
at com.sun.tools.javac.util.DefaultFileManager.makeByteBuffer(DefaultFileManager.java:720)
at com.sun.tools.javac.util.DefaultFileManager.access$200(DefaultFileManager.java:76)
at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getCharContent(DefaultFileManager.java:1350)
at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getCharContent(DefaultFileManager.java:1252)
at com.sun.tools.javac.main.JavaCompiler.readSource(JavaCompiler.java:483)
at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550)
at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:801)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
at com.sun.tools.javac.main.Main.compile(Main.java:353)
at com.sun.tools.javac.main.Main.compile(Main.java:279)
at com.sun.tools.javac.main.Main.compile(Main.java:270)
at com.sun.tools.javac.Main.compile(Main.java:69)

Users with the same issue

15 times, 2 months ago
Once, 3 months ago
Once, 3 months ago
3 times, 9 months ago
Once, 1 year ago

Write tip

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