Slow multibranch pipeline scan

I’m using Jenkins in controller agent architecture with Gerrit plugin. Multibranch scanning is taking very long (around 24mins) for a repo with around 80 remote branches and 750Mb in size. Jenkins controller is running on version 2.319.3 with 8 vCPUs and 32GB memory. However, the resource usage is very low despite the scanning takes very long. I’ve also checked the disk IOPS and network both looks good. Any reasons for the long branch indexing?

Hi there,

As a reminder, the term “slave” to refer to an agent has been deprecated since 2016. Please refer to On Jenkins Terminology Updates for more details. The term “master” was deprecated in 2020 and replaced with “controller”. We request you update your post.

Mark Waite

Hi @kahhuitee and welcome to this community :wave:

Having a recent version of the plugin and of Jenkins is always a good start.
I don’t know if you can migrate to a more recent version, but that could help.
The latest version of the Gerrit plugin is 2.38.0 (released: 3 days ago) and it requires Jenkins 2.346.3.
Do you have any information on rate limiting on the SCM server?