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 BobV, 9 months ago
via Stack Overflow by Maximin
, 2 years ago
via Oracle Community by 843834, 2 years ago
via Stack Overflow by Nagaraj Vittal
, 2 years ago
java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.util.ArrayList.toArray(Unknown Source) at com.google.common.collect.ImmutableList.copyFromCollection(ImmutableList.java:291) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:260) at org.sonar.sslr.internal.matchers.ParseNode.<init>(ParseNode.java:39) at org.sonar.sslr.internal.vm.Machine.createNode(Machine.java:257) at org.sonar.sslr.internal.vm.Instruction$RetInstruction.execute(Instruction.java:305) at org.sonar.sslr.internal.vm.Machine.execute(Machine.java:163) at org.sonar.sslr.internal.vm.Machine.execute(Machine.java:106) at org.sonar.sslr.internal.vm.Machine.parse(Machine.java:84) at org.sonar.sslr.parser.ParseRunner.parse(ParseRunner.java:45) at com.sonar.sslr.api.typed.ActionParser.parse(ActionParser.java:102) at com.sonar.sslr.api.typed.ActionParser.parse(ActionParser.java:91) at org.sonar.plugins.javascript.JavaScriptSquidSensor.analyse(JavaScriptSquidSensor.java:185) at org.sonar.plugins.javascript.JavaScriptSquidSensor.analyseFiles(JavaScriptSquidSensor.java:162) at org.sonar.plugins.javascript.JavaScriptSquidSensor.analyse(JavaScriptSquidSensor.java:153) at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50) at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83) at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:189) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:265) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:260) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:258) at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:250) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.batch.scan.ProjectScanContainer.startComponents(ProjectScanContainer.java:128) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.task.ScanTask.execute(ScanTask.java:55) at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)