Repository navigation
Closed
Closed
Copy link
Description
There's a serious performance issue in the code cleaning up duplicate Tool Installer, in hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.reduce(). On our hosted environment (DEV@cloud), it takes multiple minutes to complete and consumes a full CPU.
Here is a stack trace of where the code is stuck at:
2017-02-16_14:43:24.25621 "Download metadata thread" #136500 daemon prio=5 os_prio=0 tid=0x00000000059e9800 nid=0x676a runnable [0x00007f7687dfc000] 2017-02-16_14:43:24.25621 java.lang.Thread.State: RUNNABLE 2017-02-16_14:43:24.25622 at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.reduce(DownloadFromUrlInstaller.java:184) 2017-02-16_14:43:24.25624 at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.access$100(DownloadFromUrlInstaller.java:123) 2017-02-16_14:43:24.25624 at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl$1.reduce(DownloadFromUrlInstaller.java:140) 2017-02-16_14:43:24.25625 at hudson.model.DownloadService$Downloadable.updateNow(DownloadService.java:428)
The problem was introduced in 80a6a9e
Coming up with a patch.
Originally reported by
ydubreuil, imported from: Performance issue in code cleaning up duplicate Tool Installer
- assignee:
ydubreuil
- status: Resolved
- priority: Major
- component(s): core
- label(s): 2.46.2-fixed
- resolution: Fixed
- resolved: 2017-02-27T22:21:03+00:00
- votes: 0
- watchers: 1
- imported: 2025-11-24
Raw content of original issue
There's a serious performance issue in the code cleaning up duplicate Tool Installer, in hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.reduce(). On our hosted environment (DEV@cloud), it takes multiple minutes to complete and consumes a full CPU.
Here is a stack trace of where the code is stuck at:
2017-02-16_14:43:24.25621 "Download metadata thread" #136500 daemon prio=5 os_prio=0 tid=0x00000000059e9800 nid=0x676a runnable [0x00007f7687dfc000] 2017-02-16_14:43:24.25621 java.lang.Thread.State: RUNNABLE 2017-02-16_14:43:24.25622 at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.reduce(DownloadFromUrlInstaller.java:184) 2017-02-16_14:43:24.25624 at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.access$100(DownloadFromUrlInstaller.java:123) 2017-02-16_14:43:24.25624 at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl$1.reduce(DownloadFromUrlInstaller.java:140) 2017-02-16_14:43:24.25625 at hudson.model.DownloadService$Downloadable.updateNow(DownloadService.java:428)The problem was introduced in 80a6a9e
Coming up with a patch.
- environment:
Jenkins core 2.32.2
Activity
jenkins-infra-bot commentedon Feb 17, 2017
Remote link associated with this issue:
jenkins-infra-bot commentedon Feb 22, 2017
Raw content of original comment:
Code changed in jenkins
User: Yoann Dubreuil
Path:
core/src/main/java/hudson/tools/DownloadFromUrlInstaller.java
http://jenkins-ci.org/commit/jenkins/249dfb13be296b01b750497c0a93120200672508
Log:
JENKINS-42141Fix performance issue in code merging Tool installer listjenkins-infra-bot commentedon Feb 22, 2017
Raw content of original comment:
Code changed in jenkins
User: Oleg Nenashev
Path:
core/src/main/java/hudson/tools/DownloadFromUrlInstaller.java
http://jenkins-ci.org/commit/jenkins/274b058c6279f3cb9a6c4474ba2128452e78b95c
Log:
Merge pull request #2752 from ydubreuil/fix-
JENKINS-42141-perf-issueJENKINS-42141Fix performance issue in code merging Tool installer listCompare: 0e67ad4...274b058
jenkins-infra-bot commentedon Feb 27, 2017
Raw content of original comment:
Fixed towards 2.48