How to make JBoss MBeans visible in JConsole?

Problem Statement

When i use JConsole to view MBeans of a JBoss application server (via JMX), i only see core java MBeans(java.* etc.). The JBoss MBeans (jboss.*) do not show up.

Solution

For this you must tell the JBoss Application Server to use JBoss MBean Server, as against Sun’s built-in MBean Server.

In your JMX Configuration Options for JAVA_OPTS in your JBoss run.sh file, make sure that the options in bold are present (following example is from JBoss 4.03SP1):

-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
-Djboss.platform.mbeanserver
-Dcom.sun.management.jmxremote.port=19999
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server=YourHostIP

Now, JBoss MBeans are also exposed via JMX and visible in JConsole MBeans tab.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: