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
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.
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
Krzysiek Kalisiak Dec 23, 2008 6:43 AM
I run 5.0 with -Djboss.platform.mbeanserver only and now it works fine