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

hudson.model.TextParameterValue heavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memorey

XMLWordPrintable

      Hi,

      Recently we upgraded from 1.596.3 to 1.651.3 and observing that the later version is consuming lot of heap as soon as it comes up.

      WE have got many jobs with huge build history.. in terms of 4000 builds. Each builds's build.xml is in terms of 500k.

      Whenever the instance is restarted the heap starts to grow and finally the instance crashed with OEM.

      The heap dump shows that values defined under hudson.model.TextParameterValue of each build is loaded into memory!

      Refer screenshots: heap-screenshot-0.png & heap-screenshot-1.png

      Here is the contents of build.xml of one such build. refer screenshot build.xml-screenshot.png

      Is it this commit SECURITY-170 Store initial parameters list for later use which is loading all values?

        1. build.xml-screenshot.png
          37 kB
          Dilip Mahadevappa
        2. heap-screenshot-0.png
          48 kB
          Dilip Mahadevappa
        3. heap-screenshot-1.png
          243 kB
          Dilip Mahadevappa
        4. lazy_BuildReference.MODE.JPG
          116 kB
          Dilip Mahadevappa
        5. lazy_BuildReference.MODE-2.JPG
          52 kB
          Dilip Mahadevappa

            Unassigned Unassigned
            dilipm79 Dilip Mahadevappa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: