开发者

How to specify JMX port number dynamically

开发者 https://www.devze.com 2023-04-06 00:22 出处:网络
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), whi

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

精彩评论

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

关注公众号