【问题标题】:debugging remote websphere application from eclipse从 Eclipse 调试远程 websphere 应用程序
【发布时间】:2018-02-22 07:28:44
【问题描述】:

我已将我的服务器配置为使用以下标志运行:

服务器--> 服务器类型--> WebSphere 应用服务器--> 附加属性--> 调试服务:

JVM Debug Arguments= -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888
JVM Port= 8888

我用服务器 ip 配置了 eclipse 调试配置(验证了 ip 可以通过 ping 命令访问)和端口 为了确保我也增加了调试器超时。

我有:Failed to connect to remote VM. Connection refused. 连接被拒绝:连接

所以我使用 (nmap xxx.xxx.xxx.xxx -p 8888) 在服务器上进行了端口扫描,端口似乎: 港口国服务 8888/tcp 关闭 sun-answerbook

此外,查看 WebSphere 管理控制台的 Server--> Server Types --> WebSphere application servers --> Communications-->Ports 部分 我在列表中没有看到 8888 端口。

我需要做什么?

  • 打开机器上的端口? (怎么做?)

  • 在上述部分的列表中添加端口?

  • 其他?

@@@@@@ 已编辑 @@@@@@@@@

附加检查

netstat -na | grep 8888   --->no listening port/doesn't show me nothing

----------------------------------------------------------------------------

[root@dmgr ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

----------------------------------------------------------------------------

C:\Users\alex>nmap 192.168.115.235 -p 8888

Starting Nmap 7.60 ( https://nmap.org ) at 2018-02-23 10:58 ora solare Europa occidentale
Nmap scan report for xxxx.xxxxxxxxxxxx.com (192.168.115.235)
Host is up (0.0018s latency).

PORT     STATE  SERVICE
7777/tcp closed cbt

Nmap done: 1 IP address (1 host up) scanned in 4.59 seconds

那么,8888上没有监听端口,没有拒绝连接的iptables规则,如何进一步调查?

【问题讨论】:

    标签: websphere remote-debugging jvm-arguments


    【解决方案1】:

    你快到了 :-) 在您设置端口和参数的Debugging Service 页面上,有一个复选框 - Enable service at server startup - 确保选中它。 如果没有,检查,然后重启服务器。

    之后,您应该会看到调试端口打开。例如,您可以通过netstat -an 进行检查。

    如果端口已打开,但仍无法连接,则可能是防火墙问题。

    这里有更多关于设置调试的细节 - Starting the application server in debug mode

    【讨论】:

    • 我按照您的建议进行了检查,但端口似乎已关闭,对吗?我在帖子中添加了更多详细信息
    • @alex 确保您保存更改并重新启动服务器(因此它已完全正确停止然后重新启动)。端口应该与其他 WAS 端口(如 9043 9060 9080 9443)侦听相同。因此,如果看到其他端口但没有看到这个,那么它看起来好像没有正确保存/重新启动。您还可以进行测试,例如将 http 端口更改为 9081,看看是否反映了该更改。
    猜你喜欢
    • 2012-08-04
    • 2014-08-13
    • 2013-11-21
    • 2012-01-26
    • 1970-01-01
    • 1970-01-01
    • 2013-12-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多