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 Java.net JIRA by cavka, 1 year ago
GC overhead limit exceeded
via GitHub by chrismccracken
, 1 year ago
Requested array size exceeds VM limit
via GitHub by ghuls
, 1 year ago
Requested array size exceeds VM limit
via GitHub by antonkratz
, 1 year ago
Requested array size exceeds VM limit
via davmail by zenil79
, 1 year ago
GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded	at java.util.Arrays.copyOf(Arrays.java:2367)	at java.lang.String.(String.java:168)	at java.io.Win32FileSystem.resolve(Win32FileSystem.java:259)	at java.io.File.(File.java:262)	at java.io.File.listFiles(File.java:1206)	at org.netbeans.lib.profiler.utils.MiscUtils.deleteHeapTempFiles(MiscUtils.java:518)	at org.netbeans.modules.profiler.ProfilerModule.restored(ProfilerModule.java:134)	at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:471)	at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:394)	at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:105)	at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:346)	at org.openide.filesystems.FileUtil$2.run(FileUtil.java:435)	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:609)	at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:419)	at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:439)	at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:343)	at org.netbeans.ModuleManager.enable(ModuleManager.java:1194)	at org.netbeans.ModuleManager.enable(ModuleManager.java:1017)	at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)	at org.netbeans.core.startup.Main.start(Main.java:307)	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)	at java.lang.Thread.run(Thread.java:745)