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

Performance issue with promoted builds and Git branch parameter

XMLWordPrintable

      When accessing any page featuring a build with promotions (eg. job page, but also job list where promotion icon column is enabled), we are experiencing extremely poor performance.

      I had a look at the stack while this was going on and it seems to be because of something related to having a build parameter tied to Git branches:

       

      Handling GET /job/MyJob/ from 127.0.0.1 : qtp19448387-247861 Job/index.jelly AbstractProject/sidepanel.jelly HistoryWidget/index.jelly HistoryPageFilter/entries.jelly HistoryPageFilter/entries.jelly HistoryPageFilter/entry.jelly PromotedBuildAction/badge.jelly
      java.lang.ProcessImpl.waitForInterruptibly(Native Method)
      java.lang.ProcessImpl.waitFor(Unknown Source)
      hudson.Proc$LocalProc.join(Proc.java:324)
      hudson.Proc.joinWithTimeout(Proc.java:170)
      org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2012)
      org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1735)
      org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1640)
      org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1631)
      org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteReferences(CliGitAPIImpl.java:2851)
      net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.getBranch(GitParameterDefinition.java:392)
      net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.generateContents(GitParameterDefinition.java:315)
      net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition$DescriptorImpl.doFillValueItems(GitParameterDefinition.java:633)
      net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.getDefaultParameterValue(GitParameterDefinition.java:163)
      hudson.plugins.promoted_builds.PromotionProcess.getDefaultParameterValuesAsEnvVars(PromotionProcess.java:300)
      hudson.plugins.promoted_builds.PromotionProcess.isVisible(PromotionProcess.java:281)
      

      Pages will take upwards of minutes to finish loading. Turning off promoted builds or Git branch parameter for a job will restore performance back to typical load times.

      Please let me know if there is anything you need me to try out.

            Unassigned Unassigned
            joshschreuder Josh Schreuder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: