开发者

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. Usually it is done using -Dcom.sun.management.j开发者_开发知识库mxremote.port=1234 (static port), which works fine. Any thoughts on how can it be done dynamically?


System.setProperty("com.sun.management.jmxremote.port", "1234");

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜