Page MenuHomePhabricator

[upstream] Jenkins is slow to start
Closed, ResolvedPublic

Description

jstack trace taken while Jenkins is busy reading files

Whenever restart Jenkins it takes roughly half an hour to start up. Running strace on the process it is reading all the build histories.

I have attached a jstack taken during startup. An interesting thread is 25437.

So I guess whenever Jenkins start a project, it ends up reading all the build history for all projects which is definitively a slow operation given the number of builds logs we keep.


Version: wmf-deployment
Severity: normal
Whiteboard: incident-report
See Also:
https://issues.jenkins-ci.org/browse/JENKINS-17837

Attached:

Details

Reference
bz47120

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
Resolvedhashar

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:29 AM
bzimport set Reference to bz47120.
bzimport added a subscriber: Unknown Object (MLST).

Seems like upstream has been working on it recently.

The issue https://issues.jenkins-ci.org/browse/JENKINS-8754 "Improve Start-up Time" has some information about it.

1.485 seems to implements lazy loading. So I guess we will get it with the next LTS release.

Jenkins 1.509.1 (LTS) still has the issue.

Maybe it is related to the Downstream buildview plugin which is reference jstack traces. https://wiki.jenkins-ci.org/display/JENKINS/Downstream+buildview+plugin

I have removed the downstream-buildview plugin. That was triggered a full parse of all the build history!

The Jenkins upgraded did add the Lazy Loading system.

We are safe now, Jenkins restarts very fast now.

Upstream bug ( https://issues.jenkins-ci.org/browse/JENKINS-17837 ) received some attention today. The issue was in the downstream-buildview plugin that would update the whole history of jobs apparently for no worthwhile reason.

Upstream fixed the issue by removing the faulty class with https://github.com/jenkinsci/downstream-buildview-plugin/commit/47801c278f000b34eae5bd9d674029cf470cd8b2