什么可能导致 glassfish asadmin.bat start-domain 3.1.1 退出并显示代码 143?

发布于 2024-12-20 12:56:45 字数 340 浏览 2 评论 0原文

我正在将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

暗藏城府 2024-12-27 12:56:45

143 表示进程被终止 (SIGTERM)。

您可能已退出。

末尾的 java 行,

将其添加到 asadmin.bat -Xrs

例如

%JAVA% -Xrs -jar "%~dp0..\modules\admin-cli.jar" %*

将“-Xrs”添加到服务器也是一个好主意。转到您的域的 bin 目录,编辑 xml 文件(很明显要做什么),然后

myDomainService stop 
myDomainService uninstall 
myDomainService install
myDomainService start

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

myDomainService stop 
myDomainService uninstall 
myDomainService install
myDomainService start
权谋诡计 2024-12-27 12:56:45

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文