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

  1. ,
    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.

  2. ,
    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 Terracotta by tylercal, 1 year ago
GC overhead limit exceeded
via Stack Overflow by vithya vijayan
, 2 years ago
via GitHub by lintool
, 2 years ago
Requested array size exceeds VM limit
via Stack Overflow by joshuar
, 1 year ago
Requested array size exceeds VM limit
via Google Groups by Thad Humphries, 6 months ago
via feed-the-beast.com by Unknown author, 2 years ago
java.lang.OutOfMemoryError: GC overhead limit exceeded	at java.util.Arrays.copyOf(Arrays.java:2882)	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)	at java.lang.StringBuffer.append(StringBuffer.java:224)	at com.tc.objectserver.lockmanager.impl.Lock.toString(Lock.java:671)	at java.lang.String.valueOf(String.java:2827)	at java.io.PrintWriter.println(PrintWriter.java:710)	at com.tc.text.PrettyPrinterImpl.println(PrettyPrinterImpl.java:68)	at com.tc.objectserver.lockmanager.impl.LockManagerImpl.prettyPrint(LockManagerImpl.java:639)	at com.tc.text.PrettyPrinterImpl$PrettyPrintablePrintPolicy.visit(PrettyPrinterImpl.java:142)	at com.tc.text.PrettyPrinterImpl.basicVisit(PrettyPrinterImpl.java:109)	at com.tc.text.PrettyPrinterImpl.visit(PrettyPrinterImpl.java:103)	at com.tc.objectserver.lockmanager.impl.LockManagerImpl.dump(LockManagerImpl.java:112)	at com.tc.objectserver.lockmanager.impl.LockManagerImpl.dumpToLogger(LockManagerImpl.java:118)	at com.tc.handler.CallbackDumpAdapter.callbackOnExit(CallbackDumpAdapter.java:20)	at com.tc.lang.ThrowableHandler.handleDefaultException(ThrowableHandler.java:118)	at com.tc.lang.ThrowableHandler.handleThrowable(ThrowableHandler.java:93)	at com.tc.lang.TCThreadGroup.uncaughtException(TCThreadGroup.java:29)	at java.lang.Thread.dispatchUncaughtException(Thread.java:1821)