【问题标题】:Connect Docker Containers with remote debugger使用远程调试器连接 Docker 容器
【发布时间】:2017-04-19 17:02:57
【问题描述】:

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

如何将它们连接到我正在运行的容器。 我正在使用最新的 docker for mac,所以我没有 docker machine for ip 192.168.99.100

【问题讨论】:

    标签: docker remote-debugging docker-machine jconsole jvisualvm


    【解决方案1】:

    尝试将-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
    

    【讨论】:

      猜你喜欢
      • 2018-01-13
      • 2018-09-20
      • 2019-02-23
      • 2019-08-11
      • 1970-01-01
      • 2016-04-06
      • 2017-04-15
      • 2018-01-11
      • 2019-05-16
      相关资源
      最近更新 更多