Hi, all,
I have some difficulties trying to enable jmx on jenkins for exporting jvm metrics to an external monitor server. I tested with the following jvm argment on Centos 7.2 server but with no luck
-Djava.rmi.server.hostname=<reachable ip address>
-Dcom.sun.management.jmxremote.port=<port>
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
the process would look like
jenkins 32120 86.0 1.8 4085456 144948 ? Ssl 20:22 0:03 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=<xxxx> -Dcom.sun.management.jmxremote.port=<xxxx> -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=18080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
As a consequence, I still fail to connect it with jconsole. However, I put the exactly same settings on Ubuntu server, which works perfectly fine. My jenkins version is 2.32.
Thanks in advance!