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

Jenkins crashes with OOM when using this plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Ever since we installed this plugin Jenkins has been crashing with an OOM.
      No settings were tweaked in this plugin (all the defaults have been used).

      I've monitored the memory usage and the moment I click on "Test Results Analyzer", the memory goes up and up and up and then crashes Jenkins.
      (Note: It does not always crash Jenkins though. Sometimes I have to click that button a few times AFTER it has rendered)

      My guess is that the net.sf.json is the culprit. The version is not mentioned in the pom.xml, but older versions of this library had memory leaks, like from this post, back in 2009: link

      Also, the function createJson is sucking up the entire json tree into memory.
      I'm not sure if there is a way to optimize this loop (maybe serialize to disk?), but without putting a profile on that bit of code, I'm pretty sure that is where the problem lies.

      I'm running my master on a t2.medium (4 gigs of ram, almost all of it allocated for Jenkins), and we have around 3K unit tests that run per build. (And by default his plugin goes back 10 builds)

        Attachments

          Issue Links

            Activity

            Hide
            grayaii Alex Gray added a comment -
            Show
            grayaii Alex Gray added a comment - Here is an example of parsing a large json file: http://stackoverflow.com/questions/9390368/java-best-approach-to-parse-huge-extra-large-json-file
            Hide
            asher Asher Karadi added a comment -

            Same issue here. I have a job running ~8000 tests.
            The moment I click on "Test Results Analyzer", the memory goes up until Jenkins crashes.

            For jobs with a couple of hundred tests it works just fine.

            Show
            asher Asher Karadi added a comment - Same issue here. I have a job running ~8000 tests. The moment I click on "Test Results Analyzer", the memory goes up until Jenkins crashes. For jobs with a couple of hundred tests it works just fine.
            Hide
            wouterh Wouter Hünd added a comment -

            Looks like I'm running into this as well. Recently my Jenkins instance's memory consumption exploded and the CPU usage has been off the charts as well. Digging into the heap dump I'm pretty sure it's this plugin.

            Show
            wouterh Wouter Hünd added a comment - Looks like I'm running into this as well. Recently my Jenkins instance's memory consumption exploded and the CPU usage has been off the charts as well. Digging into the heap dump I'm pretty sure it's this plugin.
            Hide
            ronaldsankey Ronald Sankey added a comment -

            What is the status on this?  We are currently seeing this same issue

            Show
            ronaldsankey Ronald Sankey added a comment - What is the status on this?  We are currently seeing this same issue

              People

              Assignee:
              menonvarun Varun Menon
              Reporter:
              grayaii Alex Gray
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: