When Jenkins master has too much jobs, it will be very slow. In order to know what's wrong with Jenkins, we can enable JMX of Jenkins, and use Java VisualVM to monitor Jenkins threads. A deadlock is found out by this way.
Enable JMX of Jenkins
Add the config of JMX in /etc/sysconfig/jenkins: JENKINS_JAVA_OPTIONS="-Djava.rmi.server.hostname=jenkins.master.com -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
When Jenkins master has too much jobs, it will be very slow. In order to know what's wrong with Jenkins, we can enable JMX of Jenkins, and use Java VisualVM to monitor Jenkins threads. A deadlock is found out by this way.
/etc/sysconfig/jenkins
: JENKINS_JAVA_OPTIONS="-Djava.rmi.server.hostname=jenkins.master.com -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"References