我正在尝试将VisualVM连接到远程JMX。IntelliJ可以顺利连接,但VisualVM失败,并在日志输出中显示以下内容:
Listening for transport dt_socket at address: 5005
Debugger failed to attach: recv failed during handshake: Resource temporarily unavailable
Debugger failed to attach: handshake failed - received >< - expected >JDWP-Handshake<下面是我在运行时传递的JVM属性:
-XX:MaxPermSize=50g -XX:+HeapDumpOnOutOfMemoryError -Xmx50g -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=100.100.100.100 -Dcom.sun.management.jmxremote.port=5006 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false使用VisualVM 1.3.9。不确定为什么IntelliJ成功了,为什么失败了。我尝试过禁用SSL身份验证等。
https://stackoverflow.com/questions/41274317
复制相似问题