dev@glassfish.java.net

Re: Not able to get jconsole working with GlassFish v2ur1 bits

From: Nandini Ektare <Nandini.Ektare_at_Sun.COM>
Date: Fri, 07 Dec 2007 16:02:02 -0800

Pramod Gopinath wrote:
> Hi
> I am having problem getting jconsole working with the GF v2ur1 bits
> on my Macbook pro laptop (Mac OS X 10.4.11).
>
> Java environment :
> /jconsole -version
> JConsole version "1.5.0_07-164"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
> Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
>
> java -version
> java version "1.5.0_07"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
> Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
> /
> Appserver Environment : /9.1_01 (build b09b-fcs)/
>
> When I tried : jconsole 29018
> Error message displaed as : 29018 is not a managed VM.
>
> where "29018" is the pid of the PELaunch process obtained from "jps -mlvV"
Connecting jconsole using PID (the first tab in jconsole) is not
possible due to a long standing bug in the way MBeanServer gets
initialized...I think
(To make a VM managed certain system properties neeed to be enabled
during VM startup... and those sys properties govern manageabiliy of the
Platfomr MBS in the VM
You don't seem to have done that; Detailed steps are here
<http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html#local>
But in any case even if you enable them, our MBS init code causes issues.)
So you can try only the second and third tab in jconsole gui or
equivalent command line.
> /*29018* com.sun.enterprise.server.PELaunch start
> -Dcom.sun.aas.instanceRoot=/Users/pramodgopinath/work_related/glassfish_install/v2ur1/glassfish/domains/domain1
> -Dcom.sun.aas.ClassPathPrefix= -Dcom.sun.aas.ClassPathSuffix=
> -Dcom.sun.aas.ServerClassPath=
> -Dcom.sun.aas.classloader.appserverChainJars.ee=
> -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
> -Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
> -Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
> -Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
> -Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,/Users/pramodgopinath/work_related/glassfish_install/v2ur1/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,/lib/mfwk_instrum_tk.jar
> -Dcom.sun.aas.classloader.serverClassPath=/Users/pramodgopinath/work_related/glassfish_install/v2ur1/glassfish/lib/install/applications/jmsra/imqjmsra.jar,/Users/pramodgopinath/work_related/glassfish_
> 21476 -DtrustProxy=true -Xverify:remote
> -Xbootclasspath/a:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/deploy.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/plugin.jar
> -XX:-UseSharedSpaces -Djavaplugin.nodotversion=150
> -Djavaplugin.version=1.5.0 -Xmx96m -Djavaplugin.maxHeapSize=96m
> -Djavaplugin.vm.options=-DtrustProxy=true -Xverify:remote
> -Xbootclasspath/a:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/deploy.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/plugin.jar
> -XX:-UseSharedSpaces -Djavaplugin.nodotversion=150
> -Djavaplugin.version=1.5.0 -Xmx96m -Djavaplugin.maxHeapSize=96m
> jconsole /
>
> I then tried using the jmx value from server.log
> /"service:jmx:rmi:///jndi/rmi://<ipaddress>:8686/jmxrmi"/
> and that too failed.
What was the trace? (There is a -debug option you need to pass to
jconsole to get a stack on the jconsole invocation window. If you have
the trace please paste it here.)

thanks,
Nandini
>
> How can I get it working ?
>
> Thanks
> Pramod