java.lang.OutOfMemoryError: Java heap space

Jenkins JIRA | gkothari | 7 years 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

    We are seeing the following error : Publishing Cobertura coverage report... Publishing Cobertura coverage results... FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space at hudson.plugins.cobertura.targets.CoveragePaint.copyOf(CoveragePaint.java:77) at hudson.plugins.cobertura.targets.CoveragePaint.ensureSize (CoveragePaint.java:50) at hudson.plugins.cobertura.targets.CoveragePaint.paint(CoveragePaint.java:83) at hudson.plugins.cobertura.targets.CoverageResult.paint (CoverageResult.java:136) at hudson.plugins.cobertura.CoberturaXmlHandler.startElement (CoberturaCoverageParser.java:214) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:533) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElemen t(AbstractXMLDocumentParser.java:220) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement (XMLDTDValidator.java:819) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStart Element(XMLDocumentFragmentScannerImpl.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentC ontentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocum ent(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at javax.xml.parsers.SAXParser.parse(SAXParser.java:176) at hudson.plugins.cobertura.CoberturaCoverageParser.parse (CoberturaCoverageParser.java:77) at hudson.plugins.cobertura.CoberturaCoverageParser.parse (CoberturaCoverageParser.java:48) at hudson.plugins.cobertura.CoberturaPublisher.perform (CoberturaPublisher.java:259) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:372) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345) at hudson.model.Run.run(Run.java:947) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119)

    Jenkins JIRA | 7 years ago | gkothari
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    We are seeing the following error : Publishing Cobertura coverage report... Publishing Cobertura coverage results... FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space at hudson.plugins.cobertura.targets.CoveragePaint.copyOf(CoveragePaint.java:77) at hudson.plugins.cobertura.targets.CoveragePaint.ensureSize (CoveragePaint.java:50) at hudson.plugins.cobertura.targets.CoveragePaint.paint(CoveragePaint.java:83) at hudson.plugins.cobertura.targets.CoverageResult.paint (CoverageResult.java:136) at hudson.plugins.cobertura.CoberturaXmlHandler.startElement (CoberturaCoverageParser.java:214) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:533) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElemen t(AbstractXMLDocumentParser.java:220) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement (XMLDTDValidator.java:819) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStart Element(XMLDocumentFragmentScannerImpl.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentC ontentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocum ent(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at javax.xml.parsers.SAXParser.parse(SAXParser.java:176) at hudson.plugins.cobertura.CoberturaCoverageParser.parse (CoberturaCoverageParser.java:77) at hudson.plugins.cobertura.CoberturaCoverageParser.parse (CoberturaCoverageParser.java:48) at hudson.plugins.cobertura.CoberturaPublisher.perform (CoberturaPublisher.java:259) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:372) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345) at hudson.model.Run.run(Run.java:947) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119)

    Jenkins JIRA | 7 years ago | gkothari
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at hudson.plugins.cobertura.targets.CoveragePaint.copyOf()
    2. hudson.plugins.cobertura
      CoveragePaint.paint
      1. hudson.plugins.cobertura.targets.CoveragePaint.copyOf(CoveragePaint.java:77)
      2. hudson.plugins.cobertura.targets.CoveragePaint.ensureSize(CoveragePaint.java:50)
      3. hudson.plugins.cobertura.targets.CoveragePaint.paint(CoveragePaint.java:83)
      3 frames