The controller has 12 GB heap and still does full GCs every few minutes. What do you investigate?
AdvancedScenarioOperations: scale, HA, upgrades & performance
Answer
Situation read → Memory pressure from data volume or a leak.
What I'd do →
- GC logs and
jstat -gcutilto confirm old-gen growth after GC. - Heap histogram (
jcmd <pid> GC.class_histogram) or a heap dump analysed with Eclipse MAT: look forWorkflowRun,FlowNode, hugeStrings, a specific plugin's classes. - Common causes: thousands of retained builds loaded in memory, pipelines with tens of thousands of steps (huge flow graphs), massive console logs, a leaking plugin.
- Fix:
buildDiscarder, reduce step counts (fewerechoin loops), upgrade/remove the leaking plugin; only then add heap.
Why → More heap delays the problem; data volume and leaks are usually the root.
Interview tip → Mention that step count matters: each step creates flow nodes held in memory.
More on Operations: scale, HA, upgrades & performance
Jenkins is a single VM with local disk and no backups. The business wants an RTO of 1 hour. Design recovery.AdvancedQueue length spikes to 80 every morning at 9:30 and builds wait 15 minutes. How do you analyse and fix?IntermediateYou need to upgrade from Jenkins 2.426 LTS (Java 11) to the current LTS. What is your sequence?IntermediateBuild history is needed for 2 years for compliance, but the controller disk is filling. What do you do?IntermediateA plugin update caused the controller to fail on startup in production. Recover.IntermediateYour controller serves 2,000 developers and 4,000 jobs. When do you split, and how?Advanced