Page MenuHomePhabricator

[upstream] Jenkins is slow to start
Closed, ResolvedPublic


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:




Related Objects


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 "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.

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 ( ) 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