Glassfish 服务器过早退出,退出代码为 134

Glassfish The server exited prematurely with exit code 134

我的 Glassfish 服务器 v4.1 具有默认端口配置,调试模式突然停止工作并显示以下错误消息 ::

The server exited prematurely with exit code 134.
Before it died, it produced the following output:

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]

我列出了我机器上所有打开的端口,但找不到任何地方使用的调试端口。我尝试更改端口,但仍然存在相同的错误。

我使用了以下命令来列出打开的端口::

sockstat -l | grep 9009 
lsof -l | grep 9009
ss -l | grep 9009

我在 OpenSuse 风滚草上安装了 java 1.7 (Oracle JDK)。

感谢任何帮助。

搜索其他线索后,问题似乎不在端口,而是 domain.xml 文件中的其他调试选项,特别是以下行

<java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=9009" system-classpath="" classpath-suffix="">

改为

<java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" system-classpath="" classpath-suffix="">

问题已解决,感谢以下问题的回答:: Impossible to run web application in debug mode with intelliJ on ubuntu with glassfish server