[英]How to specify JMX port number dynamically
I am trying to set the port number at which the JMX server starts dynamically through the program. 我正在尝试设置JMX服务器通过程序动态启动的端口号。 Usually it is done using -Dcom.sun.management.jmxremote.port=1234 (static port), which works fine.
通常,可以使用-Dcom.sun.management.jmxremote.port = 1234(静态端口)完成此操作,该方法可以正常工作。 Any thoughts on how can it be done dynamically?
关于如何动态完成的任何想法?
System.setProperty("com.sun.management.jmxremote.port", "1234");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.