Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

A new jmx role for java mission control in glassfish

Andy DufresneFeb 20 2015 — edited Feb 24 2015

I have been trying out java mission control's flight recording feature with glassfish 3.1.2.2 but having been facing issues in connecting to the remote jvm using jmx.

By default glassfish starts a JMXConnector listening at a preconfigured port - 8686. We could connect to this port from jconsole/jvisualvm using the admin console's username/password. Adding a JVM Connection in java mission control fails when we specify the jmx details using this username/password. To make a successful connection, one has to specify a custom management.properties file as -Dcom.sun.management.config.file. To this properties file we need to specify a new jmx port, a new jmxremote.access and a new jmxremote.password file. The access and password files define new jmx role. The JVM connection on JMC can then be made with the new jmx role.

Can someone throw some light on to why the JVM connection does not work with the default username/password?

Thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2015
Added on Feb 20 2015
9 comments
3,209 views