-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
7u71, 8
I believe the following guide chapter would benefit from adding some info about 'java.rmi.server.hostname'
https://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html
There are lots of questions on stackoverflow and probably the Oracle forums about this, and most people have probably looked at the above guide.
Example of stackoverflow thread: http://stackoverflow.com/questions/834581/remote-jmx-connection
If you can't connect to a remote JVM even after you have specified the appropriate com.sun.management.jmxremote properties, it could be that the JVM hasn't found the correct public ip/hostname for your server. Specifying java.rmi.server.hostname will help with this.
(See for example here for more info: http://www.javacodegeeks.com/2013/11/two-things-to-remember-when-using-java-rmi.html)
The java.rmi.server.hostname property is documented here: http://docs.oracle.com/javase/8/docs/technotes/guides/rmi/javarmiproperties.html
https://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html
There are lots of questions on stackoverflow and probably the Oracle forums about this, and most people have probably looked at the above guide.
Example of stackoverflow thread: http://stackoverflow.com/questions/834581/remote-jmx-connection
If you can't connect to a remote JVM even after you have specified the appropriate com.sun.management.jmxremote properties, it could be that the JVM hasn't found the correct public ip/hostname for your server. Specifying java.rmi.server.hostname will help with this.
(See for example here for more info: http://www.javacodegeeks.com/2013/11/two-things-to-remember-when-using-java-rmi.html)
The java.rmi.server.hostname property is documented here: http://docs.oracle.com/javase/8/docs/technotes/guides/rmi/javarmiproperties.html