java.lang.OutOfMemoryError: GC overhead limit exceeded

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

,
via oracle.com by Unknown author

An easy way to solve OutOfMemoryError in java is to increase the maximum heap size by using JVM options -Xmx512M, this will immediately solve your OutOfMemoryError.

,
via Stack Overflow by Eugene Yokota

In Eclipse : go to Run --> Run Configurations --> then select the project under maven build --> then select the tab "JRE" --> then enter -Xmx1024m.

This should increase the memory heap for all the builds/projects. The above memory size is 1 GB.

Solutions on the web

via Stack Overflow by Asad
, 10 months ago
via Stack Overflow by tporeba
, 5 months ago
via GitHub by slanglois
, 2 months ago
GC overhead limit exceeded
via GitHub by dbrami
, 11 months ago
via Google Groups by Liangliang Gao, 4 months ago
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:649)
at java.lang.StringBuilder.append(StringBuilder.java:202)
at org.apache.cassandra.io.sstable.Descriptor.filenameFor(Descriptor.java:170)
at org.apache.cassandra.io.sstable.Descriptor.filenameFor(Descriptor.java:125)
at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:709)
at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:672)
at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:466)
at org.apache.cassandra.io.sstable.format.SSTableReader.openNoValidation(SSTableReader.java:377)
at org.apache.cassandra.tools.StandaloneVerifier.main(StandaloneVerifier.java:89)

Users with the same issue

3 times, 2 weeks ago
Once, 1 month ago
Once, 1 month ago
2 times, 2 months ago
Once, 3 months ago

Write tip

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