Controller crashes with `java.lang.OutOfMemoryError: Java heap space`
IntermediateTroubleshootingController health, disk & upgrades
Answer
Likely causes → Heap too small for the workload, too many retained builds, huge pipelines (many steps), giant logs, or a plugin leak.
Diagnose → Heap dump from -XX:+HeapDumpOnOutOfMemoryError analysed with Eclipse MAT; GC logs; recent plugin changes.
Fix → Short term: restart with more heap (-XX:MaxRAMPercentage=75 and a larger container limit). Then fix the cause: discard old builds, reduce step counts, upgrade/remove the leaking plugin.
Prevent → Alert on heap usage after GC above 80%.
More on Controller health, disk & upgrades
Controller pod restarts repeatedly: liveness probe failed: `Get "http://10.0.3.7:8080/login": context deadline exceeded`IntermediateJenkins UI shows `Jenkins is going to shut down` and new builds are not startingBeginner`JENKINS_HOME` volume is 98% fullBeginnerAfter an upgrade: `Running with Java 11, which is older than the minimum required version (Java 17).` and Jenkins won't startBeginnerUI is slow and the thread dump shows dozens of threads `BLOCKED` on `hudson.model.Queue`Advanced`java.io.IOException: Too many open files` in the controller logAdvanced