Enable JMX JBoss EAP 6.0

Latest response

I am attempting to monitor JMS queue depth on JBoss EAP 6.0. I see that Sun JMX is not supported on EAP 6 so the following start up options fail:


I found a post specific to JConsole but I'm using an open source application for monitoring. Can someone help/point me to a resource for JMX remote configuration on EAP 6.0?



Remote JMX monitoring of JBoss EAP 6 is a little different than prior versions. With EAP 6 the remoting-jmx protocol is used for monitoring remotely. To use this protocol, one has to place some additional JBoss libraries on the classpath of the application that is doing the monitoring. For example, these are the following modules placed on the classpath, which allows jconsole and visualvm to remotely monitor JBoss EAP 6.0:

org/jboss/remoting3/remoting-jmx (remoting-jmx-1.0.3.Final-redhat-1.jar)
org/jboss/remoting3 (jboss-remoting-3.2.8.GA-redhat-1.jar)
org/jboss/logging (jboss-logging-3.1.1.GA-redhat-1.jar)
org/jboss/xnio (xnio-api-3.0.4.GA-redhat-1.jar)
org/jboss/xnio/nio (xnio-nio-3.0.4.GA-redhat-1.jar)
org/jboss/sasl (jboss-sasl-1.0.1.Final-redhat-1.jar)
org/jboss/marshalling (jboss-marshalling-1.3.14.GA-redhat-1.jar)
org/jboss/marshalling/river (jboss-marshalling-river-1.3.14.GA-redhat-1.jar)
org/jboss/as/cli (jboss-as-cli-7.1.2.Final-redhat-1.jar)
org/jboss/staxmapper (staxmapper-1.1.0.Final-redhat-1.jar)
org/jboss/as/protocol (jboss-as-protocol-7.1.2.Final-redhat-1.jar)
org/jboss/dmr (jboss-dmr-1.1.1.Final-redhat-1.jar)
org/jboss/as/controller-client (jboss-as-controller-client-7.1.2.Final-redhat-1.jar)
org/jboss/threads (jboss-threads-2.0.0.GA-redhat-1.jar)
org/jboss/as/controller (jboss-as-controller-7.1.2.Final-redhat-1.jar)

Note that a management user would also need to be created and the jboss.bind.address.management address set (as mentioned in [1]).