our Jenkins "all of a sudden" takes nearly 3 minutes to start. (Ok, I guess, some of you are now laughing)
I never stopped the time exactely in the past, but it had been significantly less. (I would guess something like 1 minute)
Looking at the log, I see:
2021-01-21 17:13:18.985+0000 [id=193] SEVERE hudson.slaves.CommandLauncher#launch: Unable to launch the agent for ...
java.io.EOFException: unexpected stream termination
at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:415)
...
at java.lang.Thread.run(Thread.java:748)
2021-01-21 17:13:20.907+0000 [id=113] INFO c.s.h.p.g.t.GerritProjectListUpdater#tryLoadProjectList: Not connected to Gerrit, waiting for 16 second(s)
2021-01-21 17:13:20.908+0000 [id=114] INFO c.s.h.p.g.t.GerritProjectListUpdater#tryLoadProjectList: Not connected to GerritQA, waiting for 16 second(s)
2021-01-21 17:13:36.910+0000 [id=113] INFO c.s.h.p.g.t.GerritProjectListUpdater#tryLoadProjectList: Not connected to Gerrit, waiting for 32 second(s)
2021-01-21 17:13:36.911+0000 [id=114] INFO c.s.h.p.g.t.GerritProjectListUpdater#tryLoadProjectList: Not connected to GerritQA, waiting for 32 second(s)
2021-01-21 17:13:44.321+0000 [id=89] WARNING j.a.s.AdvancedQueueSorterQueueListener#onEnterBuildable: onEnterBuilding() called without prior call to onEnterWaiting() for '....'
2021-01-21 17:14:08.914+0000 [id=113] INFO c.s.h.p.g.t.GerritProjectListUpdater#tryLoadProjectList: Not connected to Gerrit, waiting for 64 second(s)
2021-01-21 17:14:08.915+0000 [id=114] INFO c.s.h.p.g.t.GerritProjectListUpdater#tryLoadProjectList: Not connected to GerritQA, waiting for 64 second(s)
2021-01-21 17:15:12.923+0000 [id=113] INFO c.s.h.p.g.t.GerritProjectListUpdater#tryLoadProjectList: Not connected to Gerrit, waiting for 64 second(s)
2021-01-21 17:15:12.924+0000 [id=114] INFO c.s.h.p.g.t.GerritProjectListUpdater#tryLoadProjectList: Not connected to GerritQA, waiting for 64 second(s)
2021-01-21 17:15:47.420+0000 [id=89] WARNING j.a.s.AdvancedQueueSorterQueueListener#onEnterBuildable: onEnterBuilding() called without prior call to onEnterWaiting() for '...'
So it seems, it needs two minutes (out of three !) to connect to Gerrit.
(Which would explain the difference I see)
How can I get more details to debug the reason ?
Any ideas to improve this ?
Martin
It started up much, much faster. In the logs I (just) found:
"Not connected to Gerrit, waiting for X second(s)", with X=1,2,4