什么可能导致 glassfish asadmin.bat start-domain 3.1.1 退出并显示代码 143?
我正在将 glassfish 作为由 asadmin create-service
命令创建的 Windows 服务运行(它以类似命令开头):
c:/xyz/glassfish/bin/asadmin.bat start-domain --verbose --domaindir C:\\xyz\\glassfish\\domains myDomain
我启动了服务器,然后让它继续运行,没有进一步的活动(没有客户端连接到它,没有计划任务等)。
大约 5 小时 30 分钟后,它终止并显示代码 143。
有人知道什么可能会导致这种行为吗?
I am running glassfish as a windows service created by the asadmin create-service
command (where it starts with a command something like):
c:/xyz/glassfish/bin/asadmin.bat start-domain --verbose --domaindir C:\\xyz\\glassfish\\domains myDomain
I started the server then left it running with no further activities (no clients connecting to it, no scheduled task, etc).
After approximately 5hours 30mins it terminated with code 143.
Anyone know what might cause such behaviour?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
143 表示进程被终止 (SIGTERM)。
您可能已退出。
末尾的 java 行,
将其添加到 asadmin.bat -Xrs
例如
%JAVA% -Xrs -jar "%~dp0..\modules\admin-cli.jar" %*
将“-Xrs”添加到服务器也是一个好主意。转到您的域的 bin 目录,编辑 xml 文件(很明显要做什么),然后
143 means the process was killed (SIGTERM).
You probably logged out.
Add this to the java line at the end of asadmin.bat
-Xrs
e.g.
%JAVA% -Xrs -jar "%~dp0..\modules\admin-cli.jar" %*
It's also a good idea to add "-Xrs" to the server. Go to the bin directory of your domain, edit the xml file (it's obvious what to do) and then
143 表示进程被终止 (SIGTERM)。
您可能已退出。
末尾的 java 行,
将其添加到 asadmin.bat -Xrs
例如
%JAVA% -Xrs -jar "%~dp0..\modules\admin-cli.jar" %*
还在domain.xml 中添加以下行
要设置 -Xrs Java VM 选项,请将以下行添加到以下部分:这
as-install\domains\domain-name\config\domain.xml 定义 Java VM 选项的文件:
-Xrs
如果 Communications Server 服务正在运行,请停止并重新启动该服务以使更改生效。
143 means the process was killed (SIGTERM).
You probably logged out.
Add this to the java line at the end of asadmin.bat
-Xrs
e.g.
%JAVA% -Xrs -jar "%~dp0..\modules\admin-cli.jar" %*
also add the following line in domain.xml
To set the -Xrs Java VM option, add the following line to the section of the
as-install\domains\domain-name\config\domain.xmlfile that defines Java VM options:
-Xrs
If the Communications Server service is running, stop and restart the service for your changes to become effective.