How to have JMX bind to a specific interface?

后端 未结 5 1602
南笙
南笙 2021-02-05 05:56

I am currently starting my Java VM with the com.sun.management.jmxremote.* properties so that I can connect to it via JConsole for management and m

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-05 06:39

    Fernando already provided a link to my blog post :) ..it's not trivial. You have to provide your own RMIServerSocketFactoryImpl that creates sockets on the wanted address.

    If internal/external interfaces are the problem and you have local access setting up a local firewall might be easier.

提交回复
热议问题