How to debug a connection failure between Jboss and eclipse debugger

后端 未结 3 625
灰色年华
灰色年华 2021-01-27 06:51

I have setup eclipse to attach to a local JVM. But when I try to do the same for a machine over the network I get \"connection timed out exception\".

How do I go about d

相关标签:
3条回答
  • 2021-01-27 07:04

    Sounds like a firewall or routing issue. Try using telnet (or something similar) to try and open a connection to that port. If that times out, then you have a networking problem, not a programming one.

    0 讨论(0)
  • 2021-01-27 07:15

    You should have a look at the TCP traffic with a program like tcpdump. Perhaps it's some naming problem in DNS?

    0 讨论(0)
  • 2021-01-27 07:18

    Servers often have multiple NICs; you might add the hostname or IP of the remote interface you're using to your debugging options, like so: -Xrunjdwp:transport=dt_socket,address=HOSTNAME_OR_IP:8787,server=y,suspend=n

    0 讨论(0)
提交回复
热议问题