Interview Prep/CI/CD/Jenkins Credentials, Plugins and Controller Issues

Jenkins is extremely slow; the UI times out; thread dump shows many blocked threads.

AdvancedTroubleshootingJenkins Credentials, Plugins and Controller Issues
Answer

Likely causes → Heavy plugin, too many jobs, large build histories, GC pauses, slow disk, or a stuck SCM polling thread.

Diagnose →

jcmd <pid> Thread.print > threads.txt
jcmd <pid> GC.heap_info

Check the Monitoring plugin or /threadDump.

Fix → Remove the offending plugin, reduce polling, discard old builds, tune heap/GC and move JENKINS_HOME to fast storage.

Prevent → Track controller JVM metrics and executors usage.

All CI/CD questions

More on Jenkins Credentials, Plugins and Controller Issues