The JMX Property com.sun.management.jmxremote.local.only Appears to be Ineffective (Doc ID 1641501.1)

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.

Symptoms

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.

Changes

n/a

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms