简体   繁体   中英

How to find all JMX ports on a server?

I have an application running on 4 different servers in various containers(JVMs). All JVMs have jmx ports open. While starting the JVM, jmx ports are not defined so the port numbers are assigned by JVM automatically. Is there any way to find out the list of jmx ports on a machine ?

System.getProperty("com.sun.management.jmxremote.port") returns the port number, would you be able to run this on all of your 4 servers? this will fetch the port number if JMX port is enabled or null if there is no port assigned to it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM