[JIRA] [core] (JENKINS-17837) slow startup caused by loading all build.xml history

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] [core] (JENKINS-17837) slow startup caused by loading all build.xml history

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: jstack-slow.txt
Components: core
Created: 02/May/13 2:46 PM
Description:

Jenkins takes up to 45 minutes to startup and shows up:

Please wait while Jenkins is getting ready to work

My setup has a thousand jobs, some of them having each a thousands more entries in their build history.

Using strace, I can confirm there is a few threads that are browsing the build history and opening build.xml files. Since we have a ton of them, that takes a very long time.

Attached is a JStack of the process. Thread 19970 was one of them confirmed to load build.xml in strace. The stack trace mentions jenkins.model.lazy.AbstractLazyLoadRunMap but then hudson.model.Run.reload() which in turns make it load all the build.xml files

I have noticed https://issues.jenkins-ci.org/browse/JENKINS-8754 that is about making Jenkins faster to start by using lazy loading of the jobs. That does not seems to lazy load them.

My downstream bug report is https://bugzilla.wikimedia.org/show_bug.cgi?id=47120

Environment: Jenkins 1.509.1
Also happened on 1.480.3
Project: Jenkins
Priority: Major Major
Reporter: Antoine Musso
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

[JIRA] [core] (JENKINS-17837) slow startup caused by loading all build.xml history

JIRA noreply@jenkins-ci.org

So looking at the Jstack again, I have noticed one of them was refering a plugin: https://wiki.jenkins-ci.org/display/JENKINS/Downstream+buildview+plugin I have disabled that and now my Jenkins boot instantly.

I guess this bug need to be reassigned to the downstream-buildview plugin.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

[JIRA] [downstream-buildview] (JENKINS-17837) slow startup caused by loading all build.xml history

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: sogabe (02/May/13 3:34 PM)
Component/s: downstream-buildview
Component/s: core
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

[JIRA] [downstream-buildview] (JENKINS-17837) slow startup and rename caused by loading all build.xml history

JIRA jenkinsci-no-reply@googlegroups.com
In reply to this post by JIRA noreply@jenkins-ci.org
Sam Xiao commented on Bug JENKINS-17837

I can report that it is still happening as of Jenkins 1.539

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

[JIRA] [downstream-buildview] (JENKINS-17837) slow startup and rename caused by loading all build.xml history

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Jesse Glick (17/Dec/13 5:33 PM)
Labels: lazy-loading performance
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

[JIRA] [downstream-buildview] (JENKINS-17837) slow startup and rename caused by loading all build.xml history

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Jesse Glick (17/Dec/13 5:42 PM)
Assignee: Jesse Glick
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

[JIRA] [downstream-buildview] (JENKINS-17837) slow startup and rename caused by loading all build.xml history

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Jesse Glick started work on Bug JENKINS-17837
Change By: Jesse Glick (17/Dec/13 5:42 PM)
Status: Open In Progress
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

[JIRA] [downstream-buildview] (JENKINS-17837) slow startup and rename caused by loading all build.xml history

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Jesse Glick
Path:
src/main/java/org/jvnet/hudson/plugins/DownStreamProjectActionFactory.java
http://jenkins-ci.org/commit/downstream-buildview-plugin/47801c278f000b34eae5bd9d674029cf470cd8b2
Log:
[FIXED JENKINS-17837] Deleting DownStreamProjectActionFactory.
It cannot be done efficiently in modern versions of Jenkins.
Anyway it has no clear purpose, since DownstreamBuildViewRunListener already adds the action to each new build.
Its only purpose seems to have been to retroactively modify builds started before this plugin was installed,
which seems both ill-advised and unnecessary.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

[JIRA] [downstream-buildview] (JENKINS-17837) slow startup and rename caused by loading all build.xml history

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: SCM/JIRA link daemon (17/Dec/13 7:03 PM)
Status: In Progress Resolved
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.