我正在尝试将Docker容器与JConsole或JVisualVM连接。
我在Google上搜索了一些喜欢的文章
http://www.jamasoftware.com/blog/monitoring-java-applications/
但这对我没有用。
如何将它们连接到运行中的容器。 我正在为Mac使用最新的docker,因此我没有用于IP 192.168.99.100的docker计算机
最佳答案
尝试设置-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
关于docker - 将Docker容器与远程调试器连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43501898/