-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins core 1.532.2
Build-timeout plugin 1.13
Upon upgrading plugin "build-timeout" from 1.12.2 to 1.13, all builds took about 50% longer to complete. This resulted in an unacceptably long build queue and builds timing out. This continued for 6 or 7 hours until an emergency downgrade of "build-timeout" from 1.13 back to 1.12.2 was done, which cleared the problem immediately. No other plugins were upgraded or downgraded during this time, nor were any other system wide configuration changes made.
I suspect the use of "synchronized" in the source code change made writing to the console effectively single threaded for all running builds. (My jenkins instance has 125 slave-nodes, so I have several dozens of concurrent builds all the time.)
Priority: I've made this "Major" because a mere install this plugin version causes my Jenkins instance to be unusable due to slower builds which cause a growing build queue and timed-out builds.
Environment: I'm running Jenkins core LTS 1.532.2 version. I'll be glad to furnish more information as you request it.
- is related to
-
JENKINS-26170 Improve the performance for NoActivityTimeOutStrategy
-
- Closed
-
[JENKINS-23012] Build-timeout plugin causes builds to slow
Assignee | Original: Kohsuke Kawaguchi [ kohsuke ] | New: ikedam [ ikedam ] |
As those synchronized methods are called at the start and the end of builds, I don't think they cause being slow.
Rather, changes to watch log outputs may cause the problem.
https://github.com/jenkinsci/build-timeout-plugin/commit/2129c5d8fc4a9d9432cf95ce34ce522e646eb3ff#diff-891dfa43e0d85dea7162d46b430299d7R184
I want to make some testing versions to identify the cause.
But I'm not sure how to reproduce the problem.
Can you try testing versions if I provide?