Use RMI to connect to JMX in local mode (without a port)
The JMX agent docs explains there’s a local mode when com.sun.management.jmxremote.port is not supplied. The doc also seems to imply this requires temporary files and is only understood by JConsole. …