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

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Activity

          dilipm79 Dilip Mahadevappa created issue -
          dilipm79 Dilip Mahadevappa made changes -
          Field Original Value New Value
          Summary hudson.model.ParametersAction heavily bloats memory use and size of build.xml with TextParameterValue hudson.model.ParametersAction heavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memory
          dilipm79 Dilip Mahadevappa made changes -
          Attachment heap-screenshot-3.png [ 34329 ]
          dilipm79 Dilip Mahadevappa made changes -
          Attachment heap-screenshot-0.png [ 34330 ]
          dilipm79 Dilip Mahadevappa made changes -
          Attachment heap-screenshot-3.png [ 34329 ]
          dilipm79 Dilip Mahadevappa made changes -
          Attachment heap-screenshot-0.png [ 34326 ]
          dilipm79 Dilip Mahadevappa made changes -
          Attachment lazy_BuildReference.MODE.JPG [ 34465 ]
          Attachment lazy_BuildReference.MODE-2.JPG [ 34466 ]
          dilipm79 Dilip Mahadevappa made changes -
          Summary hudson.model.ParametersAction heavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memory hudson.model.TextParamterheavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memory
          dilipm79 Dilip Mahadevappa made changes -
          Summary hudson.model.TextParamterheavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memory hudson.model.TextParameterValue heavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memorey
          danielbeck Daniel Beck made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Cannot Reproduce [ 5 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: