使用远程调试器连接Docker容器



我正在尝试将我的docker容器与jconsole或jvisualvm连接起来。我有一些我搜索过的文章http://www.jamasoftware.com/blog/monitoring-java-applications/但这对我不起作用。

如何将它们连接到跑步容器。我正在使用Mac的最新Docker,所以我没有IP 192.168.99.100

的Docker Machine

尝试将-Djava.rmi.server.hostname=localhost与其他RMI/JMX参数一起设置。

-Dcom.sun.management.jmxremote.rmi.port=9090
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=9090 
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.local.only=false
-Djava.rmi.server.hostname=localhost

最新更新