What are some of the best practices I can follow when I'm not able to establish JMX monitoring connectivity?

What are some of the best practices I can follow when I'm not able to establish JMX monitoring connectivity?

  • Make sure that the JNDI name you have given is correct. For Example, the JNDI name is “/jmxrmi” when enabling RMI connections.
  • If the JMX connection fail with both your host name and IP, try using your DNS Name to connect. For example - -Djava.rmi.server.hostname=<<rmi server ip>>

In the Tomcat Environment:

Make sure the catalina-jmx-remote.jar file is present in the $TOMCAT_HOME/lib location. This jar file can be downloaded for your version of Tomcat from the Apache website from the extras section (sample link: http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.55/bin/extras/catalina-jmx-remote.jar).