My Oracle Support Banner

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

Last updated on DECEMBER 16, 2022

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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.