users@glassfish.java.net

Re: Remote Glassfish V3 JMX and jconsole ?

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Fri, 18 Nov 2011 08:48:57 -0600

To enable remote access to JMX, run the "asadmin enable-secure-admin"
command.
This is required in the most recent builds for security reasons.
Depending on how
recent a build you have, you may also be required to set an admin
password before
running enable-secure-admin. Use change-admin-password for that .

Tom

On 11/17/2011 9:50 PM, Sven Hafner wrote:
> some findings:
>
> using the default domain with admin-no pwd
>
> add these 4 to the jvm settings and it works
>
> -Djava.rmi.server.hostname=whateveryourhost
> -Dcom.sun.management.jmxremote.port=8686
> -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.authenticate=false
>
> nothing else touched.
>
> Still I find it strange to configure the GF JMX connector and adding
> the same values to the JVM settings, dont you agree ?
>
>
>
> On Friday 18,November,2011 10:00 AM, Sven Hafner wrote:
>> Hi,
>>
>> this is an old topic and across various forums keep on asking without
>> getting a conclusive answer.
>> (some discussions refer to GF 2.1 which are not necessary applicable
>> to GF 3+)
>>
>> How do I connect jconsole to a remote default ("domain1") domain ? It
>> does not work out-of-the-box ,
>> and with whatever settings I change (in "Edit JMX connector") the
>> only answer I get is CONNECTION REFUSED/FAILED.
>>
>> To add to the confusion it is possible to start a JVM with JMX
>> settings, a part from the glassfish own settings,
>> certainly conflicting.
>>
>> -Dcom.sun.management.jmxremote
>> -Dcom.sun.management.jmxremote.ssl=false
>> -Dcom.sun.management.jmxremote.authenticate=false
>> -Dcom.sun.management.jmxremote.port=1099
>> or
>> -Dcom.sun.aas.jconsole.server.cbport=XXXX
>> -Djava.rmi.server.hostname=XXXX
>>
>> I saw various combinations of above settings in some forums added to
>> the config mix.
>>
>> Is there a simple "how to" to get it up and running ?
>>
>> My setup: Ubuntu Desktop running Virtualbox with a "remote" Ubuntu
>> Server running GF3.1.1
>>
>> Any feedback appreciated.
>>
>> Sven
>>
>