Tag cloud

JBoss (16) Fedora (5) Linux (4) Red Hat (4) JON (3) command line (3) 4.3 (2) JEE (2) JVM (2) Java (2) KVM (2) Oracle (2) Portal (2) Weblogic (2) installation (2) vs (2) /boot partition (1) Add-ons (1) Apache (1) Bundles (1) Business model (1) Byteman (1) CLASSPATH (1) EAP (1) EPP (1) Eclipse (1) Failover (1) Gnome (1) JAVA_OPTS (1) JBDS (1) JBoss Tools (1) JBossON (1) JConsole (1) JDK (1) JMS (1) JVM options (1) KDE (1) MBean (1) Network (1) Open Source (1) RHQ (1) Red Hat subscription (1) Thunderbird (1) Troubleshooting (1) Virtulization (1) WS (1) Webservices (1) Wireshark (1) classloading (1) clustering (1) comparison (1) debug (1) deployment (1) disable SELinux (1) disksize (1) error (1) fun (1) jboss.org (1) log (1) log4j (1) lvm (1) messaging (1) multiple WARs (1) patent FOSS (1) performance tuning (1) provisionning (1) scripting (1) services (1) switch (1) troll (1) upgrade (1) video (1) war (1) webapp (1) yum (1)

26 July 2010

JConsole has greyed out tabs with JBoss (depending on JVM version)

I ran into a strange issue where I found myself with greyed out tabs (Overview, Memory, Threads, Classes, VM Summary) when I tried to connect a JConsole to JBoss. The only accessible tab was MBeans.


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 /bin/run.conf :

# 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

1 comment:

  1. Thanks, I was going mad wondering why the tabs were greyed out. Simple restart of JConsole and everything worked!

    ReplyDelete