0
我有一个Spring Boot应用程序在远程计算机的容器中运行,必须使用哪些JVM参数通过Java Mission Control或JVisual VM(通过JMX)连接到它, ?如何通过JMX连接到远程Docker容器
我有一个Spring Boot应用程序在远程计算机的容器中运行,必须使用哪些JVM参数通过Java Mission Control或JVisual VM(通过JMX)连接到它, ?如何通过JMX连接到远程Docker容器
具有以下JAVA_OPTIONS启动容器:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.rmi.port=7012
-Dcom.sun.management.jmxremote.port=7012
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server.hostname=<public_ip>
此外,还要确保你揭露你的容器内监听相同的端口(如搬运工运行容器-p 7012:7012 ...)