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

Jenkins crashes with OOM when using this plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins ver. 1.642.4
      test-result-analzyer plugin: 0.3.4

      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)

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

              Created:
              Updated: