开发者

JConsole times out when trying to connect

开发者 https://www.devze.com 2023-04-06 18:34 出处:网络
I\'m trying to use jconsole to connect to jetty. I can see that the relevant port is open w开发者_C百科ith nmap, but when I try to connect to it using jconsole, the connection times out. (When I run j

I'm trying to use jconsole to connect to jetty. I can see that the relevant port is open w开发者_C百科ith 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.


Have you started your application with java -Dcom.sun.management.jmxremote ... ?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消