Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>By default JMX does not publish on a port unless you specify the arguments from this page: <a href="https://stackoverflow.com/questions/856881/how-to-activate-jmx-on-my-jvm-for-access-with-jconsole">How to activate JMX...</a></p> <pre><code>-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false </code></pre> <p>If you are running you should be able to access any of those system properties to see if they have been set:</p> <pre><code>if (System.getProperty("com.sun.management.jmxremote") == null) { System.out.println("JMX remote is disabled"); } else [ String portString = System.getProperty("com.sun.management.jmxremote.port"); if (portString != null) { System.out.println("JMX running on port " + Integer.parseInt(portString)); } } </code></pre> <p>Depending on how the server is connected, you might also have to specify the following parameter. As part of the initial JMX connection, jconsole connects up to the RMI port to determine which port the JMX server is running on. When you initially start up a JMX enabled application, it looks its own hostname to determine what address to return in that initial RMI transaction. If your hostname is not in <code>/etc/hosts</code> or if it is set to an incorrect interface address then you can override it with the following:</p> <pre><code>-Djava.rmi.server.hostname=&lt;IP address&gt; </code></pre> <p>As an aside, my <a href="http://256stuff.com/sources/simplejmx/" rel="nofollow noreferrer">SimpleJMX package</a> allows you to define both the <a href="http://256stuff.com/sources/simplejmx/javadoc/simplejmx/com/j256/simplejmx/server/JmxServer.html#setServerPort%28int%29" rel="nofollow noreferrer">JMX server</a> and the <a href="http://256stuff.com/sources/simplejmx/javadoc/simplejmx/com/j256/simplejmx/server/JmxServer.html#setRegistryPort%28int%29" rel="nofollow noreferrer">RMI port</a> or set them both to the same port. The above port defined with <code>com.sun.management.jmxremote.port</code> is actually the RMI port. This tells the client what port the JMX server is running on.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload