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 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 Stack Overflow by Shekhar Gupta
, 9 months ago
via manifoldcf-user by Ahmet Arslan, 2 years ago
via manifoldcf-user by Markus Schuch, 2 years ago
via manifoldcf-user by Karl Wright, 2 years ago
via manifoldcf-user by Karl Wright, 2 years ago
java.lang.OutOfMemoryError: Java 
heap space	at java.util.Arrays.copyOf(	at java.util.Arrays.copyOf(	at java.util.ArrayList.grow(	at java.util.ArrayList.ensureExplicitCapacity(	at java.util.ArrayList.ensureCapacityInternal(	at java.util.ArrayList.add(	at GUIs.GameField.mouseClicked(	at java.awt.Component.processMouseEvent(	at javax.swing.JComponent.processMouseEvent(	at java.awt.Component.processEvent(	at java.awt.Container.processEvent(	at java.awt.Component.dispatchEventImpl(	at java.awt.Container.dispatchEventImpl(	at java.awt.Component.dispatchEvent(	at java.awt.LightweightDispatcher.retargetMouseEvent(	at java.awt.LightweightDispatcher.processMouseEvent(	at java.awt.LightweightDispatcher.dispatchEvent(	at java.awt.Container.dispatchEventImpl(	at java.awt.Window.dispatchEventImpl(	at java.awt.Component.dispatchEvent(	at java.awt.EventQueue.dispatchEventImpl(	at java.awt.EventQueue.access$300(	at java.awt.EventQueue$	at java.awt.EventQueue$	at Method)