I am trying to set the port number at which the JMX server starts dynamically through the program. Usually it is done using -Dcom.sun.management.jmxremote.port=1234 (static port), which works fine. Any thoughts on how can it be done dynamically?
System.setProperty("com.sun.management.jmxremote.port", "1234");
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.