supereagle / experiences

Summary of practical experience in work.
2 stars 0 forks source link

Performance Tune for Jenkins Master #19

Closed supereagle closed 7 years ago

supereagle commented 7 years ago

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.

  1. 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"
  2. Restart Jenkins master
  3. Remotely monitor Jenkins threads by Java VisualVM

References