java.lang.OutOfMemoryError: Java heap space

mkyong.com | 2 days ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Eclipse – java.lang.OutOfMemoryError: Java heap space

    mkyong.com | 2 days ago
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Eclipse – java.lang.OutOfMemoryError: Java heap space

    mkyong.com | 2 days ago
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    0.3.0-DEV-1756 resuls in OutOfMemoryError: Java heap space. Prior releases worked. It may be something in my environment; however, it seems that a recent change in tycho is causing the failure. "d:\program files\tycho\bin\mvn" -Dtycho.targetPlatform="D:/Program Files/eclipse" compile "d:\program files\tycho\bin\mvn" -Dtycho.targetPlatform="D:/Program Files/eclipse" compile [WARNING] Dependency at location D:\Program Files\eclipse\plugins\org.eclipse.core.runtime.compatibility.registry_3.2.200.v20080610 can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins [WARNING] Dependency at location D:\Program Files\eclipse\plugins\org.eclipse.jdt.debug_3.4.0.v20080604 can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins [WARNING] Dependency at location D:\Program Files\eclipse\plugins\org.junit4_4.3.1 can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building org.reqmon.emf.ocl.compiler [INFO] [INFO] Id: org.reqmon:org.reqmon.emf.ocl.compiler:eclipse-plugin:1.0.0 [INFO] task-segment: [compile] [INFO] ------------------------------------------------------------------------ --------------------------------------------------- constituent[0]: file:/d:/Program%20Files/tycho/bin/../tycho/org.eclipse.osgi-3.4.0.v20080605-1900.jar constituent[1]: file:/d:/Program%20Files/tycho/bin/../tycho/tycho-osgi-components-0.3.0-DEV-1756.jar constituent[2]: file:/d:/Program%20Files/tycho/bin/../lib/aspectjrt-1.5.3.jar constituent[3]: file:/d:/Program%20Files/tycho/bin/../lib/commons-cli-1.0.jar constituent[4]: file:/d:/Program%20Files/tycho/bin/../lib/commons-logging-api-1.1.jar constituent[5]: file:/d:/Program%20Files/tycho/bin/../lib/doxia-sink-api-1.0-alpha-9.jar constituent[6]: file:/d:/Program%20Files/tycho/bin/../lib/jsch-0.1.38.jar constituent[7]: file:/d:/Program%20Files/tycho/bin/../lib/log4j-1.2.12.jar constituent[8]: file:/d:/Program%20Files/tycho/bin/../lib/maven-artifact-3.0-alpha-2-TYCHO-695719.jar constituent[9]: file:/d:/Program%20Files/tycho/bin/../lib/maven-core-3.0-TYCHO-698080.jar constituent[10]: file:/d:/Program%20Files/tycho/bin/../lib/maven-distribution-3.0-TYCHO-698080.jar constituent[11]: file:/d:/Program%20Files/tycho/bin/../lib/maven-embedder-3.0-TYCHO-698080.jar constituent[12]: file:/d:/Program%20Files/tycho/bin/../lib/maven-lifecycle-3.0-TYCHO-698080.jar constituent[13]: file:/d:/Program%20Files/tycho/bin/../lib/maven-model-3.0-TYCHO-698080.jar constituent[14]: file:/d:/Program%20Files/tycho/bin/../lib/maven-plugin-api-3.0-TYCHO-698080.jar constituent[15]: file:/d:/Program%20Files/tycho/bin/../lib/maven-profile-3.0-TYCHO-698080.jar constituent[16]: file:/d:/Program%20Files/tycho/bin/../lib/maven-project-3.0-TYCHO-698080.jar constituent[17]: file:/d:/Program%20Files/tycho/bin/../lib/maven-reporting-api-3.0-TYCHO-698080.jar constituent[18]: file:/d:/Program%20Files/tycho/bin/../lib/maven-shared-model-1.0-TYCHO-698080.jar constituent[19]: file:/d:/Program%20Files/tycho/bin/../lib/maven-toolchain-3.0-TYCHO-698080.jar constituent[20]: file:/d:/Program%20Files/tycho/bin/../lib/maven-workspace-3.0-TYCHO-698080.jar constituent[21]: file:/d:/Program%20Files/tycho/bin/../lib/nekohtml-1.9.6.2.jar constituent[22]: file:/d:/Program%20Files/tycho/bin/../lib/plexus-container-default-1.0-alpha-48.jar constituent[23]: file:/d:/Program%20Files/tycho/bin/../lib/plexus-interactivity-api-1.0-alpha-6.jar constituent[24]: file:/d:/Program%20Files/tycho/bin/../lib/plexus-interpolation-1.1.jar constituent[25]: file:/d:/Program%20Files/tycho/bin/../lib/plexus-utils-1.5.5.jar constituent[26]: file:/d:/Program%20Files/tycho/bin/../lib/stax-api-1.0-2.jar constituent[27]: file:/d:/Program%20Files/tycho/bin/../lib/stax-api-1.0.1.jar constituent[28]: file:/d:/Program%20Files/tycho/bin/../lib/wagon-file-1.0-beta-4.jar constituent[29]: file:/d:/Program%20Files/tycho/bin/../lib/wagon-http-lightweight-1.0-beta-4.jar constituent[30]: file:/d:/Program%20Files/tycho/bin/../lib/wagon-http-shared-1.0-beta-4.jar constituent[31]: file:/d:/Program%20Files/tycho/bin/../lib/wagon-provider-api-1.0-beta-4.jar constituent[32]: file:/d:/Program%20Files/tycho/bin/../lib/wagon-ssh-1.0-beta-4.jar constituent[33]: file:/d:/Program%20Files/tycho/bin/../lib/wagon-ssh-common-1.0-beta-4.jar constituent[34]: file:/d:/Program%20Files/tycho/bin/../lib/wagon-ssh-external-1.0-beta-4.jar constituent[35]: file:/d:/Program%20Files/tycho/bin/../lib/wstx-asl-3.2.6.jar constituent[36]: file:/d:/Program%20Files/tycho/bin/../lib/xbean-reflect-3.4.jar constituent[37]: file:/d:/Program%20Files/tycho/bin/../lib/xercesMinimal-1.9.6.2.jar --------------------------------------------------- Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.LinkedHashMap.init(LinkedHashMap.java:223) at java.util.HashMap.<init>(HashMap.java:210) at java.util.LinkedHashMap.<init>(LinkedHashMap.java:181) at org.codehaus.plexus.configuration.DefaultPlexusConfiguration.<init>(DefaultPlexusConfiguration.java:60) at org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration.<init>(XmlPlexusConfiguration.java:49) at org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration.<init>(XmlPlexusConfiguration.java:64) at org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration.<init>(XmlPlexusConfiguration.java:64) at org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration.<init>(XmlPlexusConfiguration.java:64) at org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.buildConfiguration(PluginDescriptorBuilder.java:330) at org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.build(PluginDescriptorBuilder.java:50) at org.apache.maven.plugin.MavenPluginDiscoverer.createComponentDescriptors(MavenPluginDiscoverer.java:52) at org.codehaus.plexus.component.discovery.AbstractComponentDiscoverer.findComponents(AbstractComponentDiscoverer.java:112) at org.codehaus.plexus.container.initialization.ComponentDiscoveryPhase.discoverComponents(ComponentDiscoveryPhase.java:81) at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java:877) at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:319) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:220) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:195) at org.apache.maven.plugin.loader.DefaultPluginLoader.loadPlugin(DefaultPluginLoader.java:79) at org.apache.maven.plugin.loader.DefaultPluginLoader.loadPlugin(DefaultPluginLoader.java:52) at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.loadPluginDescriptor(DefaultBuildPlanner.java:322) at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.findForkModifiers(DefaultBuildPlanner.java:192) at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.addForkedLifecycleModifiers(DefaultBuildPlanner.java:179) at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.constructBuildPlan(DefaultBuildPlanner.java:117) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getLifecycleBindings(DefaultLifecycleExecutor.java:423) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:258) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:172) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:218) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:899) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176) at org.apache.maven.cli.MavenCli.main(MavenCli.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Sonatype JIRA | 8 years ago | Deleted User
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at java.util.HashMap.<init>()
    2. Java RT
      LinkedHashMap.<init>
      1. java.util.HashMap.<init>(HashMap.java:209)
      2. java.util.LinkedHashMap.<init>(LinkedHashMap.java:181)
      2 frames