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 Knows Not Much
, 1 year ago
via GitHub by carlvine500
, 8 months ago
GC overhead limit exceeded
via Google Groups by Chao Li, 5 months ago
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOf(Arrays.java:2367)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
at java.lang.StringBuilder.append(StringBuilder.java:132)
at java.lang.StringBuilder.append(StringBuilder.java:128)
at scala.StringContext.standardInterpolator(StringContext.scala:125)
at scala.StringContext.s(StringContext.scala:95)
at firrtl.Serialize.serialize(Serialize.scala:81)
at firrtl.Serialize$.serialize(Serialize.scala:39)
at firrtl.ir.FirrtlNode.serialize(IR.scala:41)
at firrtl.WrappedExpression.hashCode(WIR.scala:104)
at scala.runtime.ScalaRunTime$.hash(ScalaRunTime.scala:206)
at scala.collection.mutable.HashTable$HashUtils$class.elemHashCode(HashTable.scala:409)
at scala.collection.mutable.LinkedHashMap.elemHashCode(LinkedHashMap.scala:49)
at scala.collection.mutable.HashTable$class.findEntry(HashTable.scala:132)
at scala.collection.mutable.LinkedHashMap.findEntry(LinkedHashMap.scala:49)
at scala.collection.mutable.LinkedHashMap.get(LinkedHashMap.scala:65)
at scala.collection.MapLike$class.contains(MapLike.scala:150)
at firrtl.passes.ExpandWhens$$anonfun$firrtl$passes$ExpandWhens$$expandWhens$2$3.apply(ExpandWhens.scala:139)
at firrtl.passes.ExpandWhens$$anonfun$firrtl$passes$ExpandWhens$$expandWhens$2$3.apply(ExpandWhens.scala:137)
at scala.collection.Iterator$class.foreach(Iterator.scala:742)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1194)
at firrtl.passes.ExpandWhens$.firrtl$passes$ExpandWhens$$expandWhens$2(ExpandWhens.scala:137)
at firrtl.passes.ExpandWhens$$anonfun$firrtl$passes$ExpandWhens$$expandWhens$2$4.apply(ExpandWhens.scala:176)
at firrtl.passes.ExpandWhens$$anonfun$firrtl$passes$ExpandWhens$$expandWhens$2$4.apply(ExpandWhens.scala:176)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 2 weeks ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
61 more bugmates

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