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

Metrics Plugin holds references to Destroyed Build Node objects

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I'm attaching some screenshots from MAT for heap analysis. Not %100 positive but it appears the Metrics plugin holds data and references for Build Slaves that have been destroyed and no longer exist.

      We spin up nodes ephemerally and then destory them. The Docker Plugin creates these as DockerComputer objects. Over time, we end up with a reference leak. I took a heap dump and traced the references being held and it looks like the jenkins.metrics.impl.JenkinsMetricProviderImpl is holding references to a large chunk of hashmaps that maintain data on all the build nodes ever created since the start of Jenkins service.

      This is also confirmed as the Graphite reporting plugin happily transmits the data for all of these nodes (right now I cull it graphite server side).

      I'm not sure if there's a way I can force the plugin to flush this data without a Jenkins server restart.

      I can't upload the Hprof as even compressed it's too big for the limits established here. Happy to send it over to whomever wants to look

        Attachments

          Activity

          Hide
          stephenconnolly Stephen Connolly added a comment -

          (hopefully) resolved towards 4.0.2.0

          Show
          stephenconnolly Stephen Connolly added a comment - (hopefully) resolved towards 4.0.2.0

            People

            • Assignee:
              Unassigned
              Reporter:
              maxfields2000 Maxfield Stewart
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: