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

WorkflowGraph.FlowNodeContainer is causing memory performance issues

    XMLWordPrintable

Details

    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

          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.

          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.
          carlo_almeida Carlo Almeida added a comment -

          Did a fix for this make it into version 5.5?

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

          when is the plan to release this fix?

          anshulsaxena14 ANSHUL SAXENA added a comment - when is the plan to release this fix?
          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?

          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?
          svanoort Sam Van Oort added a comment -

          lazara3 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.)

          svanoort Sam Van Oort added a comment - lazara3 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.)
          ylevi Yaniv Levi added a comment -

          Released as part of version 5.5.2

          Download link

           

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: