Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2660

Warnings plugin gets OutOfMemoryException

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • warnings-plugin
    • None
    • Platform: All, OS: Linux

    Description

      My build completes successfully, but the warnings generation part fails with an
      OutOfMemoryError. I tried setting -Xmx in the Advanced options for Maven to a
      large value, but it didn't help. Does the plugin launch Java using those same
      parameters specified under Maven/Advanced, or does it launch Java with the
      default options?

      ...
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 96 minutes 49 seconds
      [INFO] Finished at: Fri Nov 21 10:29:47 PST 2008
      [INFO] Final Memory: 196M/760M
      [INFO] ------------------------------------------------------------------------
      channel stopped
      [WARNINGS] Parsing warnings in log file...
      FATAL: Java heap space
      java.lang.OutOfMemoryError: Java heap space
      at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
      at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:518)
      at java.lang.StringBuffer.append(StringBuffer.java:307)
      at java.io.StringWriter.write(StringWriter.java:72)
      at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1129)
      at org.apache.commons.io.IOUtils.copy(IOUtils.java:1104)
      at org.apache.commons.io.IOUtils.copy(IOUtils.java:1050)
      at org.apache.commons.io.IOUtils.toString(IOUtils.java:359)
      at hudson.plugins.warnings.parser.RegexpParser.parse(RegexpParser.java:69)
      at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:66)
      at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:110)
      at
      hudson.plugins.warnings.util.HealthAwarePublisher.perform(HealthAwarePublisher.java:172)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:318)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:453)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:291)
      at hudson.model.Run.run(Run.java:813)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:88)

      Attachments

        Activity

          rvangent rvangent created issue -
          drulli Ulli Hafner made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          drulli Ulli Hafner made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          abayer Andrew Bayer made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 132733 ] JNJira + In-Review [ 201626 ]

          People

            drulli Ulli Hafner
            rvangent rvangent
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: