JConsole with JBoss 4.2.3 on Java 6

You must set the following when starting JBoss or you will get .ClassNotFoundException when trying to connect JConsole to the JBoss process see forum entry.

Edit the JBoss startup script

Add to run JConsole without JBoss MBeans

JAVA_OPTS="-Dcom.sun.management.jmxremote $JAVA_OPTS"

Add to run JConsole with only JBoss MBeans

JAVA_OPTS="-Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
-Djboss.platform.mbeanserver
-Dcom.sun.management.jmxremote $JAVA_OPTS"

JBossMBeansInJConsole


# Enable the jconsole agent locally
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
# Tell JBossAS to use the platform MBean server
JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
# Make the platform MBean server able to work with JBossAS MBeans
JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"


Can get JBoss MBeans through Jboss web consoles.

http://localhost:8080/jmx-console/
OR
http://localhost:8080/web-console/ under System : JMX MBeans

Also be sure the hostname in /etc/hosts is mapped to an interface ip address, see previous entry.

Comments

Rajesh Roy said…
Thanks a lot. Your instruction has resolved my claa not found exception problem.
roja said…
The 'show MBeans' option resulted with a CNF. But this worked, from a comment on the page you referenced...thanks ! (I am running JBoss 4.2.2 and took a chance)

Krzysiek Kalisiak Dec 23, 2008 6:43 AM

I run 5.0 with -Djboss.platform.mbeanserver only and now it works fine

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout

Locks held on Oracle for hours after sessions abnormally terminated by node failure