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 JIRA by Olof Hellqvist, 1 year ago
Java heap space
via Google Groups by Saravanan Tirugnanum, 4 months ago
via Google Groups by Ferdy Galema, 2 years ago
via GitHub by cjnolet
, 1 year ago
via GitHub by cjnolet
, 5 months ago
java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:57)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)
at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:792)
at java.nio.charset.Charset.encode(Charset.java:842)
at java.nio.charset.Charset.encode(Charset.java:865)
at org.jruby.RubyEncoding.encode(RubyEncoding.java:236)
at org.jruby.RubyString.encodeBytelist(RubyString.java:7684)
at org.jruby.RubyString.(RubyString.java:414)
at org.jruby.RubyString.newString(RubyString.java:508)
at org.jruby.Ruby.newString(Ruby.java:3378)
at org.jruby.RubyBasicObject.hashyInspect(RubyBasicObject.java:1020)
at org.jruby.RubyBasicObject.inspect(RubyBasicObject.java:999)
at org.jruby.RubyKernel.inspect(RubyKernel.java:2107)
at org.jruby.RubyKernel$INVOKER$s$0$0$inspect.call(RubyKernel$INVOKER$s$0$0$inspect.gen)
at org.jruby.runtime.Helpers.invokedynamic(Helpers.java:2798)
at org.jruby.RubyBasicObject.inspectObj(RubyBasicObject.java:1052)
at org.jruby.RubyBasicObject.hashyInspect(RubyBasicObject.java:1020)
at org.jruby.RubyBasicObject.inspect(RubyBasicObject.java:999)
at org.jruby.RubyKernel.inspect(RubyKernel.java:2107)
at org.jruby.RubyKernel$INVOKER$s$0$0$inspect.call(RubyKernel$INVOKER$s$0$0$inspect.gen)
at org.jruby.runtime.Helpers.invokedynamic(Helpers.java:2798)
at org.jruby.RubyBasicObject.inspectObj(RubyBasicObject.java:1052)
at org.jruby.RubyBasicObject.hashyInspect(RubyBasicObject.java:1020)
at org.jruby.RubyBasicObject.inspect(RubyBasicObject.java:999)
at org.jruby.RubyKernel.inspect(RubyKernel.java:2107)
at org.jruby.RubyKernel$INVOKER$s$0$0$inspect.call(RubyKernel$INVOKER$s$0$0$inspect.gen)
at org.jruby.runtime.Helpers.invokedynamic(Helpers.java:2798)
at org.jruby.RubyBasicObject.inspectObj(RubyBasicObject.java:1052)
at org.jruby.RubyBasicObject.hashyInspect(RubyBasicObject.java:1020)
at org.jruby.RubyBasicObject.inspect(RubyBasicObject.java:999)
at org.jruby.RubyKernel.inspect(RubyKernel.java:2107)
at org.jruby.RubyKernel$INVOKER$s$0$0$inspect.call(RubyKernel$INVOKER$s$0$0$inspect.gen)

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.