The JMX Property com.sun.management.jmxremote.local.only Appears to be Ineffective
Last updated on NOVEMBER 05, 2016
Applies to:Java SE JDK and JRE - Version 7 and later
Information in this document applies to any platform.
Starting with Java SE 7, a new property for the JMX RMI Connector Server was introduced: com.sun.management.jmxremote.local.only
It is described in the Java SE 7 and JDK 7 Compatibility guide.
You expect to be not able to connect a JVM from outside the machine by default if com.sun.management.jmxremote.local.only has been set to true. But you can connect to your JVM using jvisualvm or jconsole from outside, independent of the value of com.sun.management.jmxremote.local.only flag. It seems to you that the option has no effect.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms