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

Loading pipeline builds is expensive because they store scripts

    XMLWordPrintable

    Details

    • Similar Issues:
    • Sprint:
      Pipeline - October, Pipeline - April 2018

      Description

      Scripts may be large and can be lazy-loaded if needed.  

      CpsFlowExecution.script/loadedScripts should be stored externally

      These can wind up comprising most of the retained size of a CpsFlowExecution for complex builds, but unless reloading a build or using Replay these fields are unused. It would be better to save these to disk (via owner.rootDir) and keep them out of heap.

      Reducing the number of times we have to re-persist the build.xml will reduce the impact of this problem on pipeline execution rates - https://issues.jenkins-ci.org/browse/JENKINS-47174

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            svanoort Sam Van Oort made changes -
            Field Original Value New Value
            Priority Major [ 3 ] Minor [ 4 ]
            svanoort Sam Van Oort made changes -
            Epic Link JENKINS-47170 [ 185575 ]
            svanoort Sam Van Oort made changes -
            Link This issue blocks JENKINS-47175 [ JENKINS-47175 ]
            svanoort Sam Van Oort made changes -
            Description These can wind up comprising most of the retained size of a {{CpsFlowExecution}} for complex builds, but unless reloading a build or using *Replay* these fields are unused. It would be better to save these to disk (via {{owner.rootDir}}) and keep them out of heap.  

            CpsFlowExecution.script/loadedScripts should be stored externally

            These can wind up comprising most of the retained size of a {{CpsFlowExecution}} for complex builds, but unless reloading a build or using *Replay* these fields are unused. It would be better to save these to disk (via {{owner.rootDir}}) and keep them out of heap.
            svanoort Sam Van Oort made changes -
            Summary CpsFlowExecution.script/loadedScripts should be stored externally Loading pipeline builds is expensive because they store scripts
            svanoort Sam Van Oort made changes -
            Description  

            CpsFlowExecution.script/loadedScripts should be stored externally

            These can wind up comprising most of the retained size of a {{CpsFlowExecution}} for complex builds, but unless reloading a build or using *Replay* these fields are unused. It would be better to save these to disk (via {{owner.rootDir}}) and keep them out of heap.
            Scripts may be large and can be lazy-loaded if needed.  

            CpsFlowExecution.script/loadedScripts should be stored externally

            These can wind up comprising most of the retained size of a {{CpsFlowExecution}} for complex builds, but unless reloading a build or using *Replay* these fields are unused. It would be better to save these to disk (via {{owner.rootDir}}) and keep them out of heap.

            Reducing the number of times we have to re-persist the build.xml will reduce the impact of this problem on pipeline execution rates - https://issues.jenkins-ci.org/browse/JENKINS-47174
            jamesdumay James Dumay made changes -
            Sprint Pipeline - October [ 406 ]
            jamesdumay James Dumay made changes -
            Sprint Pipeline - October [ 406 ] Pipeline - October, Pipeline - December [ 406, 446 ]
            svanoort Sam Van Oort made changes -
            Link This issue is related to JENKINS-49086 [ JENKINS-49086 ]
            svanoort Sam Van Oort made changes -
            Labels performance performance project-cheetah
            vivek Vivek Pandey made changes -
            Sprint Pipeline - October, Pipeline - December [ 406, 446 ] Pipeline - October, Pipeline - March 2018 [ 406, 506 ]
            vivek Vivek Pandey made changes -
            Labels performance project-cheetah performance project-cheetah triaged-2018-11

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: