Thats how I started JConsole
$ which java
/usr/java/jdk1.6.0_06/bin/java
$ jconsole
(Choosing the PID of my JBoss JVM)
Environment:
JBoss EAP 4.3 (JVM Hotspot 1.6_06)
+ JConsole (JVM Hotspot 1.6_06)
My JBOSS config in
# Enable the jconsole agent locally
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
# Enable the jconsole agent remotely on port 9008
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9008"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"
# Install a wrapper around the JDK MBeanServer
JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"
After accessing the stopping the JConsole in the terminal and restarting it in the same terminal it WORKED ! A miracle ?
Ctrl + C
$ jconsole
(Choosing my JBoss JVM)d
Reply to and reference this post: http://community.jboss.org/message/168509
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5074001
Thanks, I was going mad wondering why the tabs were greyed out. Simple restart of JConsole and everything worked!
ReplyDelete