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

When using the scriptler plugin the server is responding very slow

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • scriptler-plugin
    • Jenkins ver. 1.627
      java version "1.7.0_65"
      Jenkins starts as init.d service(default)

      When using the scriptler plugin with my Jenkins instance each time I'm trying to interact with jobs that uses this plugin I'm seeing a very slow response time from the server(sometimes up to 40 sec. to load a page).
      When accessing views which do not include those jobs everything working smooth.
      I tried to delete the plugin and then I see a very fast response, but again if I'll install it on the instance the response is very low.

      I tried to use active choice plugin(he also requires scriptler) and dynamic parameter plugin and see the same behavior. I also tried to run the scripts locally and saw the same thing.

          [JENKINS-31973] When using the scriptler plugin the server is responding very slow

          Amir Sinay added a comment -

          kinow
          domi

          Can someone please help us with this issue?? It's almost impossible to work with the system now.
          Waiting 45-60 seconds for a page to load is really annoying!

          Amir Sinay added a comment - kinow domi Can someone please help us with this issue?? It's almost impossible to work with the system now. Waiting 45-60 seconds for a page to load is really annoying!

          ran S added a comment -

          kinow
          Hi,

          I've encountered the same issue as well.
          I use Jenkins 1.627 and scriptler 2.9 (also tested on 2.7).
          It can take up to a minute for the jobs to load. When i disable the plugin it runs as expected.
          I've tried deleting the scripts themselves but still it is very very slow..
          PLEASE help.

          Thanks a lot,
          Ran

          ran S added a comment - kinow Hi, I've encountered the same issue as well. I use Jenkins 1.627 and scriptler 2.9 (also tested on 2.7). It can take up to a minute for the jobs to load. When i disable the plugin it runs as expected. I've tried deleting the scripts themselves but still it is very very slow.. PLEASE help. Thanks a lot, Ran

          sorry, but I'm not able to look into this before new year...

          Dominik Bartholdi added a comment - sorry, but I'm not able to look into this before new year...

          ran S added a comment -

          domi
          Thanks for the response!
          I will deeply appreciate if you could find the time to help with this issue as soon as you can.

          Thanks again,
          Ran

          ran S added a comment - domi Thanks for the response! I will deeply appreciate if you could find the time to help with this issue as soon as you can. Thanks again, Ran

          I have seen this behaviour when you have this plugin combination:

          It seems that project-inheritance:1.5.3 is doing an evaluation of every parameter of every job in the current view (includes build history) so if you have groovy dynamic parameters like one-choice the groovy will be executed.

          Emilio Escobar added a comment - I have seen this behaviour when you have this plugin combination: project-inheritance:1.5.3 (not reproduced in 1.5.1 as is said at https://issues.jenkins-ci.org/browse/JENKINS-23993 ) scriptler:2.7 uno-choice:1.2 It seems that project-inheritance:1.5.3 is doing an evaluation of every parameter of every job in the current view (includes build history) so if you have groovy dynamic parameters like one-choice the groovy will be executed.

          ran S added a comment -

          Thanks for the update!

          is there any chance to get a fix for that soon? my jobs are already dependent on these versions and i cannot downgrade.

          Thanks,
          Ran

          ran S added a comment - Thanks for the update! is there any chance to get a fix for that soon? my jobs are already dependent on these versions and i cannot downgrade. Thanks, Ran

          so far i was not able to reproduce this - can you reproduce it on a minimal new installation?

          could you please also get a thread dump while seeing this issue and make it available somewhere? https://wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump

          Dominik Bartholdi added a comment - so far i was not able to reproduce this - can you reproduce it on a minimal new installation? could you please also get a thread dump while seeing this issue and make it available somewhere? https://wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump

          Hi Dominik, this is not an issue of scriptler. This behaviour only appears if you combines:

          project-inheritance ask for the default value of each parameter and in the case of uno-choice (don't know if scriptler too) runs the groovy script (with a lack of performance of the system).

          Emilio Escobar added a comment - Hi Dominik, this is not an issue of scriptler. This behaviour only appears if you combines: project-inheritance:1.5.3 (not reproduced in 1.5.1 as is said at https://issues.jenkins-ci.org/browse/JENKINS-23993 ) uno-choice:1.2 (scriptler:2.7 is required by uno-choice) project-inheritance ask for the default value of each parameter and in the case of uno-choice (don't know if scriptler too) runs the groovy script (with a lack of performance of the system).

          escoem hmm, now I'm confused - you say the exact opposite of voolkanus. If this is not an issue with scriptler, then we should update the issue and assign it to the correct plugin/jira component

          Dominik Bartholdi added a comment - escoem hmm, now I'm confused - you say the exact opposite of voolkanus . If this is not an issue with scriptler, then we should update the issue and assign it to the correct plugin/jira component

          Hi domi, these are the steps to reproduce the issue:

          • Install Inheritance Project plugin.
          • Install Active Choice Plugin (you need scriptler too because is a requirement).
          • Create a Inheritance job and add a Active Choice parameter (with a very simple groovy script that returns an array of strings).
          • Save and run two or three times.
          • Add a custom logger for org.biouno.unochoice.AbstractScriptableParameter
          • Look for getDefaultParameterValue message at the log.

          Maybe if you add a scriptler parameter you can face the issue too but currently I don't know if it's a bug at inheritance or is the expected behaviour.

          There is an open issue at inheritance https://issues.jenkins-ci.org/browse/JENKINS-23993

          Emilio Escobar added a comment - Hi domi , these are the steps to reproduce the issue: Install Inheritance Project plugin. Install Active Choice Plugin (you need scriptler too because is a requirement). Create a Inheritance job and add a Active Choice parameter (with a very simple groovy script that returns an array of strings). Save and run two or three times. Add a custom logger for org.biouno.unochoice.AbstractScriptableParameter Look for getDefaultParameterValue message at the log. Maybe if you add a scriptler parameter you can face the issue too but currently I don't know if it's a bug at inheritance or is the expected behaviour. There is an open issue at inheritance https://issues.jenkins-ci.org/browse/JENKINS-23993

            domi Dominik Bartholdi
            voolkanus Amir Sinay
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: