JConsole 尝试连接时超时
我正在尝试使用 jconsole 连接到码头。我可以看到相关端口已使用 nmap 打开,但是当我尝试使用 jconsole 连接到它时,连接超时。 (当我使用 -debug 运行 jconsole 时,它表明根本问题是读取超时。)我尝试连接到哪个进程并不重要。如果我尝试连接到我的笔记本电脑上正在运行的其他本地进程,它也会超时。
I'm trying to use jconsole to connect to jetty. I can see that the relevant port is open with nmap, but when I try to connect to it using jconsole, the connection times out. (When I run jconsole with -debug it shows that the underlying problem is a timeout on read.) It doesn't matter which process I try to connect to. If I try to connect to some other local process that happens to be running on my laptop, it times out too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否使用 java -Dcom.sun.management.jmxremote ... 启动您的应用程序?
Have you started your application with java -Dcom.sun.management.jmxremote ... ?
你解决这个问题了吗?我最近遇到了类似的情况,在我的情况下,问题是虚拟机似乎绑定到通过解析主机名识别的接口,在我的情况下,主机名绑定到 /etc/hosts 中的“坏”IP 地址。将主机名解析为 127.0.0.1(例如)为我解决了这个问题。
Did you solve this problem? I have lately had a similar situation and in my case the problem was that the VM seems to bind to the interface identified by resolving the hostname and in my case the hostname was bound to a "bad" IP address in /etc/hosts. Having the hostname resolve to 127.0.0.1 (for example) fixed it for me.