`java.lang.OutOfMemoryError: Java heap space` on the controller.
IntermediateTroubleshootingJenkins Credentials, Plugins and Controller Issues
Answer
Likely causes → Heap too small for job count; memory leak in a plugin; massive pipeline logs.
Diagnose → Take a heap dump (jcmd <pid> GC.heap_dump /tmp/h.hprof) and inspect with Eclipse MAT; check JAVA_OPTS.
Fix → Increase -Xmx, remove the leaking plugin, reduce build retention.
Prevent → Alert on heap utilisation and old gen GC time.
More on Jenkins Credentials, Plugins and Controller Issues
`ERROR: Could not find credentials entry with ID 'docker-hub'`.BeginnerJenkins UI shows `HTTP ERROR 403 No valid crumb was included in the request`.BeginnerAfter upgrade, Jenkins shows `Jenkins failed to start` and logs `Failed Loading plugin ... Plugin is missing: ...`.AdvancedJenkins is extremely slow; the UI times out; thread dump shows many blocked threads.Advanced`No such property: env for class: groovy.lang.Binding` in a shared library.Advanced`Unable to create live FilePath for agent` / `java.io.IOException: Remote file system ... is not writable`.Intermediate