java.lang.OutOfMemoryError: Java heap space

Jenkins JIRA | Greg Moncreaff | 5 years ago
  1. 0

    Is it possible to catch this flag build as unstable but not automatically failed, (or use the "error during processing result") and abort only DRY publisher but still let the other publishers have a chance? a few web searches indicate that reuse of objects instead of allocating new and letting GC reclaim might be something to consider? 11:56:51 [DRY] Collecting duplicate code analysis files... 12:02:34 FATAL: Java heap space 12:02:34 java.lang.OutOfMemoryError: Java heap space 12:02:34 at java.util.Arrays.copyOf(Arrays.java:2882) 12:02:34 at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) 12:02:34 at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515) 12:02:34 at java.lang.StringBuilder.append(StringBuilder.java:189) 12:02:34 at org.apache.commons.digester3.Digester.characters(Digester.java:988) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538) 12:02:34 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:464) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) 12:02:34 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) 12:02:34 at org.apache.commons.digester3.Digester.parse(Digester.java:1642) 12:02:34 at org.apache.commons.digester3.Digester.parse(Digester.java:1701) 12:02:34 at hudson.plugins.dry.parser.cpd.CpdParser.parse(CpdParser.java:86) 12:02:34 at hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:73) 12:02:34 at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358) 12:02:34 at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317) 12:02:34 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266) 12:02:34 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) 12:02:34 at hudson.FilePath.act(FilePath.java:788) 12:02:34 at hudson.FilePath.act(FilePath.java:770) 12:02:34 at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:171) 12:02:34 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) 12:02:34 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653) 12:02:34 at hudson.model.Build$RunnerImpl.post2(Build.java:162) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622) 12:02:34 at hudson.model.Run.run(Run.java:1434) 12:02:34 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)

    Jenkins JIRA | 5 years ago | Greg Moncreaff
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Is it possible to catch this flag build as unstable but not automatically failed, (or use the "error during processing result") and abort only DRY publisher but still let the other publishers have a chance? a few web searches indicate that reuse of objects instead of allocating new and letting GC reclaim might be something to consider? 11:56:51 [DRY] Collecting duplicate code analysis files... 12:02:34 FATAL: Java heap space 12:02:34 java.lang.OutOfMemoryError: Java heap space 12:02:34 at java.util.Arrays.copyOf(Arrays.java:2882) 12:02:34 at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) 12:02:34 at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515) 12:02:34 at java.lang.StringBuilder.append(StringBuilder.java:189) 12:02:34 at org.apache.commons.digester3.Digester.characters(Digester.java:988) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538) 12:02:34 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:464) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) 12:02:34 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) 12:02:34 at org.apache.commons.digester3.Digester.parse(Digester.java:1642) 12:02:34 at org.apache.commons.digester3.Digester.parse(Digester.java:1701) 12:02:34 at hudson.plugins.dry.parser.cpd.CpdParser.parse(CpdParser.java:86) 12:02:34 at hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:73) 12:02:34 at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358) 12:02:34 at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317) 12:02:34 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266) 12:02:34 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) 12:02:34 at hudson.FilePath.act(FilePath.java:788) 12:02:34 at hudson.FilePath.act(FilePath.java:770) 12:02:34 at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:171) 12:02:34 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) 12:02:34 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653) 12:02:34 at hudson.model.Build$RunnerImpl.post2(Build.java:162) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622) 12:02:34 at hudson.model.Run.run(Run.java:1434) 12:02:34 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)

    Jenkins JIRA | 5 years ago | Greg Moncreaff
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    spring webservice server crashes on large attachment

    Stack Overflow | 4 years ago | user1521469
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java heap dump analysis tools keep crashing

    Stack Overflow | 5 years ago | scphantm
    java.lang.OutOfMemoryError: Java heap space
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Java heap space

    at java.util.Arrays.copyOf()
  2. Java RT
    StringBuilder.append
    1. java.util.Arrays.copyOf(Arrays.java:2882)
    2. java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    3. java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515)
    4. java.lang.StringBuilder.append(StringBuilder.java:189)
    4 frames
  3. Apache Commons Digester
    Digester.characters
    1. org.apache.commons.digester3.Digester.characters(Digester.java:988)
    1 frame
  4. Java RT
    SAXParserImpl$JAXPSAXParser.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538)
    2. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:464)
    3. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    4. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    5. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    6. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    7. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    7 frames
  5. Apache Commons Digester
    Digester.parse
    1. org.apache.commons.digester3.Digester.parse(Digester.java:1642)
    2. org.apache.commons.digester3.Digester.parse(Digester.java:1701)
    2 frames
  6. hudson.plugins.dry
    DuplicationParserRegistry.parse
    1. hudson.plugins.dry.parser.cpd.CpdParser.parse(CpdParser.java:86)
    2. hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:73)
    2 frames
  7. Static Analysis Utilities
    FilesParser.invoke
    1. hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358)
    2. hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317)
    3. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266)
    4. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31)
    4 frames
  8. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:788)
    2. hudson.FilePath.act(FilePath.java:770)
    2 frames
  9. hudson.plugins.dry
    DryPublisher.perform
    1. hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:171)
    1 frame
  10. Static Analysis Utilities
    HealthAwarePublisher.perform
    1. hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338)
    1 frame
  11. Hudson
    FreeStyleBuild.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
    3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675)
    4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653)
    5. hudson.model.Build$RunnerImpl.post2(Build.java:162)
    6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622)
    7. hudson.model.Run.run(Run.java:1434)
    8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8 frames