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 jakarta-cactus-user by Nicole Luneburg, 2 years ago
via jakarta-cactus-user by Nicole Luneburg, 1 year ago
via Stack Overflow by Unknown author, 2 years ago
via nutch-user by Felix Zimmermann, 2 years ago
via GitHub by tozor
, 11 months ago
via Stack Overflow by LeAdErQ
, 1 year ago
java.lang.OutOfMemoryError: Java heap space	at java.util.Arrays.copyOf(Arrays.java:2786)	at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:133)	at org.codehaus.cargo.module.DefaultJarArchive.streamToByteArray(DefaultJarArchive.java:295)	at org.codehaus.cargo.module.DefaultJarArchive.(DefaultJarArchive.java:86)	at org.codehaus.cargo.module.application.DefaultEarArchive.(DefaultEarArchive.java:66)	at org.apache.cactus.integration.ant.deployment.EarParser.parse(EarParser.java:60)	at org.apache.cactus.integration.ant.CactusTask.execute(CactusTask.java:144)	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)	at org.apache.tools.ant.Task.perform(Task.java:348)	at org.apache.tools.ant.Target.execute(Target.java:357)	at org.apache.tools.ant.Target.performTasks(Target.java:385)	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)	at org.apache.tools.ant.Main.runBuild(Main.java:758)	at org.apache.tools.ant.Main.startAnt(Main.java:217)	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)