Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8066405

Add info about java.rmi.server.hostname in the Java SE Monitoring and Management Guide

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • 7u71, 8
    • docs

      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

            ssatish Savitha Satish
            klward Klara Ward
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: