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 Google Groups by ctesniere via StackOverflow, 7 months ago
via Google Groups by advocate via StackOverflow, 7 months ago
via Google Groups by advocate via StackOverflow, 7 months ago
java.lang.OutOfMemoryError: Java heap space	at java.util.Arrays.copyOf(Arrays.java:3236)	at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)	at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)	at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)	at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:275)	at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)	at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)	at com.android.dx.command.dexer.Main.processOne(Main.java:677)	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)	at com.android.dx.command.dexer.Main.run(Main.java:277)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jetbrains.android.compiler.tools.AndroidDxRunner.runDex(AndroidDxRunner.java:188)	at org.jetbrains.android.compiler.tools.AndroidDxRunner.main(AndroidDxRunner.java:336)