通过jmx将Java应用程序访问到本地networking远程主机上的Docker容器中
我无法通过jmx(使用VisualVM)将java应用程序连接到本地networking远程主机上的Docker容器中。 问题的屏幕截图。 案例1:Java应用程序到客户端的Docker容器中: 连接到应用程序(端口6830) – 工作 连接到jmx(端口6831) – 工作 java -Dhttp.port=9010 \ -Dcom.sun.management.jmxremote.port=9011 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false \ -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9012 \ -jar application.jar docker run -d \ -p 6830:9010 \ -p 6831:9011 \ –name container_name \ base_image \ setup.sh 情况2:在远程主机上没有Docker容器的Java应用程序: 连接到应用程序(端口6830) – 工作 连接到jmx(端口6831) – 工作 java -Dhttp.port=6830 \ -Dcom.sun.management.jmxremote.port=6831 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false \ -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=6832 […]