如何调试 Jboss 和 Eclipse 调试器之间的连接失败 [英] How to debug a connection failure between Jboss and eclipse debugger

查看:31
本文介绍了如何调试 Jboss 和 Eclipse 调试器之间的连接失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了 eclipse 以附加到本地 JVM.但是当我尝试通过网络对一台机器做同样的事情时,我得到连接超时异常".

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 debugging this issue?

我试过了:

lsof -i :8787 在远程机器上,看来 Java 进程实际上正在侦听该端口.

lsof -i :8787 on the remote machine, and it appears that a java process is in fact listening on that port.

还有什么问题以及如何找到它.请帮忙.

What else could be wrong and how to go about finding it. Please help.

谢谢.

注意:我的 JAVA_OPT 在远程机器上看起来像这样.JAVA_OPTS="-​​Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n $JAVA_OPTS"

Note: My JAVA_OPT looks like this on the remote machine. JAVA_OPTS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n $JAVA_OPTS"

推荐答案

服务器通常有多个网卡;您可以将正在使用的远程接口的主机名或 IP 添加到调试选项中,如下所示:-Xrunjdwp:transport=dt_socket,address=HOSTNAME_OR_IP:8787,server=y,suspend=n

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

这篇关于如何调试 Jboss 和 Eclipse 调试器之间的连接失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆