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

WorkflowGraph.FlowNodeContainer is causing memory performance issues

    Details

    • Similar Issues:

      Description

      The WorkflowGraph has a static class WorkflowGraphListener.FlowNodeContainer. This class contains a map that is populated with a Run object every time a new Flow Head is created! This hinder the normal garbage collection of Runs.

      It may cause Jenkins to hang, in which case Jenkins needs to be restarted.

      Simple Scenario

      I have tested the simplest case scenario and run a simple pipeline that just just do:

      node {
          sh "echo 'Hello'"
      }
      

      Every time the run completes, the map size is increased by one. This never decreases. In large instances with lots of pipeline jobs, this is a problem...

        Attachments

          Activity

          Hide
          lazara3 Ayellet Lazar added a comment -

          I opened a defect on it in our internal system:
          Defect 700143 - WorkflowGraph.FlowNodeContainer is causing memory performance issues

          working on it.

          Show
          lazara3 Ayellet Lazar added a comment - I opened a defect on it in our internal system: Defect 700143 - WorkflowGraph.FlowNodeContainer is causing memory performance issues working on it.
          Hide
          carlo_almeida Carlo Almeida added a comment -

          Did a fix for this make it into version 5.5?

          Show
          carlo_almeida Carlo Almeida added a comment - Did a fix for this make it into version 5.5?
          Hide
          anshulsaxena14 ANSHUL SAXENA added a comment -

          when is the plan to release this fix?

          Show
          anshulsaxena14 ANSHUL SAXENA added a comment - when is the plan to release this fix?
          Hide
          985279 Romil Surti added a comment -

          When are you planning to release this fix? Is it going to be in the latest version of the plugin?

          Show
          985279 Romil Surti added a comment - When are you planning to release this fix? Is it going to be in the latest version of the plugin?
          Hide
          svanoort Sam Van Oort added a comment -

          Ayellet Lazar I see this one was released with the 5.5.2 beta on 2 Oct – could we mark this one as closed-released at this point? (Perhaps promoting the beta release to a full release along the way.)

          Show
          svanoort Sam Van Oort added a comment - Ayellet Lazar I see this one was released with the 5.5.2 beta on 2 Oct – could we mark this one as closed-released at this point? (Perhaps promoting the beta release to a full release along the way.)
          Hide
          ylevi Yaniv Levi added a comment -

          Released as part of version 5.5.2

          Download link

           

          Show
          ylevi Yaniv Levi added a comment - Released as part of version 5.5.2 Download link  

            People

            • Assignee:
              ylevi Yaniv Levi
              Reporter:
              allan_burdajewicz Allan BURDAJEWICZ
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: