Enabling Java Management Extensions (JMX)

For all Java Applications, the Opsclarity JMX plugin can collect metrics. Since JMX is disabled by default, you'll need to enable the JMX plugin in the Opsclarity UI as follows:

Select a service from the topological map, then click on Configure.  Under the Configure Data Sources tab, click on the Source Type drop down selector to add the JMX data source.

When you start the Java Application, use the following command line options to enable JMX:
            -Dcom.sun.management.jmxremote
            -Dcom.sun.management.jmxremote.port=9191
            -Dcom.sun.management.jmxremote.local.only=false
            -Dcom.sun.management.jmxremote.authenticate=false
            -Dcom.sun.management.jmxremote.ssl=false
 
Install JConsole on your computer and connect to the aforementioned host and port.  You should be able to view all Mbeans.
 
 
If you have any questions or comments about this article, feel free to contact us at support@opsclarity.com.
Have more questions? Submit a request

0 Comments

Article is closed for comments.