JMX Port dynamic allocation

戏子无情 提交于 2019-12-05 13:33:51
MarianP

Using RMI Connector might be the way as you may specify URL of your agent.

In case you'd need it, you may create RMI registry programatically using:

java.rmi.registry.LocateRegistry.createRegistry(port);

You may find following unrelated sample useful: Connecting Through Firewall Using JMX

I don't think the oracle jvm supports anything like this. the only thing that might work is using the port "0", which enables "dynamic" port selection in some rmi related stuff.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!