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 GitHub by jburel
, 1 year ago
via Oracle Community by konstantin.gudjev, 1 year ago
java.lang.OutOfMemoryError: Java heap space	at java.util.Arrays.copyOf(Arrays.java:3332)	at java.lang.String.concat(String.java:2020)	at java.net.URLClassLoader$1.run(URLClassLoader.java:364)	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)	at java.security.AccessController.doPrivileged(Native Method)	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)	at com.sun.tools.javac.main.Main.resourceMessage(Main.java:610)	at com.sun.tools.javac.main.Main.compile(Main.java:543)	at com.sun.tools.javac.main.Main.compile(Main.java:381)	at com.sun.tools.javac.main.Main.compile(Main.java:370)	at com.sun.tools.javac.main.Main.compile(Main.java:361)	at com.sun.tools.javac.Main.compile(Main.java:56)	at com.sun.tools.javac.Main.main(Main.java:42)