What are the most common causes of a slow Jenkins controller?
IntermediateConceptBackups, HA, upgrades & performance
Answer
- Too many builds retained (no
buildDiscarder), making job loading and UI slow - Heavy Groovy in pipelines (CPS on the controller), especially JSON parsing and big loops
- Builds running on the built-in node
- Slow
JENKINS_HOMEstorage (NFS with high latency, burstable EBS volumes out of credits) - Large console logs streamed through the controller
- Too many plugins, or a misbehaving plugin
- Polling hundreds of repos instead of webhooks
- Undersized heap causing constant GC
More on Backups, HA, upgrades & performance
What do you back up in Jenkins and what do you exclude?IntermediateHow do you back up Jenkins running on Kubernetes?IntermediateDoes Jenkins support active-active high availability?AdvancedHow do you plan a Jenkins LTS upgrade?IntermediateWhat does "Manage Old Data" mean after an upgrade?BeginnerHow do you size and tune the controller JVM?Advanced