• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • active-choices-plugin
    • Ubuntu 14.04 x86_64
      Jenkins 2.19.2 LTS
      Open JDK 1.7
      Active Choices Plug-in 1.5
      Folders Plugin 5.13

      On the same Jenkins server,
      I see significant performance slowness in release 1.5.
      I have about 2.5K jobs in total within my Jenkins master,
      and I have about 5~6 active-reactive input parameters per job.

      With release 1.4,
      I could fully open the "Build with parameter" page within about 4~6 seconds.
      With release 1.5,
      the loading time becomes about 20 seconds (approx 4 times slower).

          [JENKINS-39593] Performance slow in 1.5 release

          Rick Liu created issue -

          Rick Liu added a comment -

          I'm not sure if this is related to the fix in JENKINS-36590 (commit-6a4828b08b24034fd317bf7ad0c9f5db660087c7).

          I hope it's not each of active-reactive input parameters would have to go through instance.getAllItems().
          None of my six active-reactive input parameters are referencing "jenkinsProject" variable name.

          Rick Liu added a comment - I'm not sure if this is related to the fix in JENKINS-36590 ( commit-6a4828b08b24034fd317bf7ad0c9f5db660087c7 ). I hope it's not each of active-reactive input parameters would have to go through instance.getAllItems(). None of my six active-reactive input parameters are referencing "jenkinsProject" variable name.

          Hi totoroliu

          Nice job investigating it. It sounds like we need to improve the way that that jenkinsProject variable is injected. There's a bunch of ways of fixing it (disabling that unless the user request that variable, reverting the change if there's no feature broken, find another way of doing that, etc).

          Next release should be out soon (by the end of the month I believe).

          Thanks
          Bruno

          Bruno P. Kinoshita added a comment - Hi totoroliu Nice job investigating it. It sounds like we need to improve the way that that jenkinsProject variable is injected. There's a bunch of ways of fixing it (disabling that unless the user request that variable, reverting the change if there's no feature broken, find another way of doing that, etc). Next release should be out soon (by the end of the month I believe). Thanks Bruno

          lsb want added a comment - - edited

          I got same similar problem. but seem not only in version 1.5.

          I did some testing the found the groovy script which configurate in the Jenkins job will run about 15 times when click Jenkins job name in Jenkins. Then can open the Jenkins job main page.

          it is need run about 15 times too when I click "Build with Parameters". also click configuration button.
          every click need take about 50 seconds then can open page.

          I have try to use version 1.3, 1.4. All like this.

          Jenkins version is LTS 1.651.3. java version is 1.7

          lsb want added a comment - - edited I got same similar problem. but seem not only in version 1.5. I did some testing the found the groovy script which configurate in the Jenkins job will run about 15 times when click Jenkins job name in Jenkins. Then can open the Jenkins job main page. it is need run about 15 times too when I click "Build with Parameters". also click configuration button. every click need take about 50 seconds then can open page. I have try to use version 1.3, 1.4. All like this. Jenkins version is LTS 1.651.3. java version is 1.7
          lsb want made changes -
          Attachment New: click-Build with Parameters.png [ 34955 ]
          lsb want made changes -
          Attachment New: click-configure.png [ 34956 ]
          lsb want made changes -
          Attachment New: configure.png [ 34957 ]

          John Wadleigh added a comment - - edited

          I have been using the plugin recently to develop a job that allows users dynamic control of the build parameters. While I love the options and control from the plugin, I noticed also a performance issue. When I run Jenkins on my local VM with simple Jenkins installation, the job build parameters respond fast without delay. However when I checkin my code to the server and I build the job from our remote server then the response time is terrible when I click on the various drop-downs, radio-buttons, etc. It updates the dynamic values very slowly.

          I see here that the performance is an issue, but I am puzzled to see it work fast on my local VM with Jenkins. So is the issue happening when it calls the Groovy Script for that parameter? Can you explain the problem better for me and let me know if a fix is coming soon? The user experience is a bit annoying.

          We are using the latest Jenkins LTS with the plugin 1.5 version.

          Thanks!

          John Wadleigh added a comment - - edited I have been using the plugin recently to develop a job that allows users dynamic control of the build parameters. While I love the options and control from the plugin, I noticed also a performance issue. When I run Jenkins on my local VM with simple Jenkins installation, the job build parameters respond fast without delay. However when I checkin my code to the server and I build the job from our remote server then the response time is terrible when I click on the various drop-downs, radio-buttons, etc. It updates the dynamic values very slowly. I see here that the performance is an issue, but I am puzzled to see it work fast on my local VM with Jenkins. So is the issue happening when it calls the Groovy Script for that parameter? Can you explain the problem better for me and let me know if a fix is coming soon? The user experience is a bit annoying. We are using the latest Jenkins LTS with the plugin 1.5 version. Thanks!

          lsb want added a comment -

          I found if I use "promoted builds plugin" and " Active Choices Plug-in" in same Jenkins job can reproduce my problem.
          Then the "Active Choices Plug-in" will be call many times. it will be call when
          click this Jenkins job name,
          click configure of this Jenkins job,
          click save button in job configure page,
          click Build with Parameters of this Jenkins job
          click Promotion Status of this Jekins job
          click promotion approve of build

          If not use "promoted builds plugin" in this Jenkins job.
          The "Active Choices Plug-in" only call 2 or 3 times. it happen in when
          Click Build with Parameters of this Jenkins job only

          These test run in Jenkins ver. 2.19.3 LTS . java1.8, 1.7 also. redhat6.7

          lsb want added a comment - I found if I use "promoted builds plugin" and " Active Choices Plug-in" in same Jenkins job can reproduce my problem. Then the "Active Choices Plug-in" will be call many times. it will be call when click this Jenkins job name, click configure of this Jenkins job, click save button in job configure page, click Build with Parameters of this Jenkins job click Promotion Status of this Jekins job click promotion approve of build If not use "promoted builds plugin" in this Jenkins job. The "Active Choices Plug-in" only call 2 or 3 times. it happen in when Click Build with Parameters of this Jenkins job only These test run in Jenkins ver. 2.19.3 LTS . java1.8, 1.7 also. redhat6.7
          lsb want made changes -

            kinow Bruno P. Kinoshita
            totoroliu Rick Liu
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: