dev@glassfish.java.net

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

From: Nandini Ektare <Nandini.Ektare_at_Sun.COM>
Date: Sat, 08 Dec 2007 13:24:26 -0800

Hi Pramod,

Looks like it's an issue to have 1.6 on Mac OS (though there is some
effort to port: here
<http://landonf.bikemonkey.org/code/macosx/FreeBSD_Java_16.20071105.html>).
Anyway let's stick to 1.5 then.

May be I can try to connect to your setup, if that works we know this is
mostly Mac issue, if not I can debug.

Thanks,
Nandini

Pramod Gopinath wrote:
> Hi Nandini
> Thanks for Ur replies.
>
> Not sure where I can get JDK 6 for MAC. Last time I tried I failed to
> locate JDK 6 for MAC.
>
> Thanks
> Pramod
>
> Nandini Ektare wrote:
>> Nandini Ektare wrote:
>>> 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
>> <forgot to complete the sentence...here it is>
>>
>> I think the better way would be to use the second tab which is the
>> simpler of the remaining two.
>>> (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.)
>> Also I have checked the debug option: jconsole -debug
>> Looks like it is available 1.6 onwards (you can use jconsole 1.6 -
>> the second and third options are clubbed into one in the 1.6 version)
>>
>> Nandini
>>> thanks,
>>> Nandini
>>>>
>>>> How can I get it working ?
>>>>
>>>> Thanks
>>>> Pramod
>>>
>>
>