为什么 JVM 返回退出状态代码 143?
在 Windows 2003 上作为计划任务运行的 Java 应用程序崩溃了,没有日志或任何有助于查明发生情况的信息。唯一可用的信息是应用程序返回代码 143 (8F)。该错误代码是从计划任务日志中检索到的。
有谁知道错误代码(143)代表什么?用户注销是否有可能导致应用程序终止?
谢谢,
A Java application running as an scheduled task on Windows 2003 crashed with no logs or anything that would help to find out what happened. The only information available, is that the application returned code 143 (8F). That error code was retrieved from the scheduled tasks log.
Does anyone knows what that error code (143) stands for? Is it possible that an user logging off could cause the application to be terminated?
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
143 通常意味着应用程序因 SIGTERM 命令而终止。另请参阅https://unix.stackexchange。 com/questions/10231/when-does-the-system-send-a-sigterm-to-a-process
但是,请注意,应用程序可能会使用 143 作为其自己的自定义结果。
143 often means that the application was terminated due to a SIGTERM command. See also https://unix.stackexchange.com/questions/10231/when-does-the-system-send-a-sigterm-to-a-process
However, please note that an application might use 143 for its own custom result.
JVM 错误代码 143 表示 内部字段必须有效。 OTN 论坛对此进行了讨论。然而,结论似乎是某些东西杀死了你的进程。
我怀疑这确实可能是由于用户注销造成的。
JVM error code 143 means Internal field must be valid. This is discussed on the OTN discussion forums. However, the conclusion seems to be something killed your process.
I suspect this could indeed be caused by a user logging off.
用户注销会向所有正在运行的进程发出
CTRL_LOGOFF_EVENT
信号。来自 https://msdn。 microsoft.com/en-us/library/windows/desktop/aa376876(v=vs.85).aspx:现在,在某些情况下,它将终止 Java 应用程序,并显示错误代码
143
(SIGTERM
)。请参阅https://bugs.openjdk.java.net/browse/JDK-6871190。好吧,无论如何,您需要阻止这种情况发生,就是使用
-Xrs
选项启动 Java。来自 https://www.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.win.80.doc/diag/appendixes/cmdline/Xrs.html:因此,您应该使用以下内容启动 Java 应用程序:
PS:
SIGTERM
和143
数字之间的关系在 https://unix.stackexchange.com/questions/10231/when-does-the-system-send-a-sigterm-to-a-process#comment13523_10231。An user logging off would signal the
CTRL_LOGOFF_EVENT
signal to all running processes. From https://msdn.microsoft.com/en-us/library/windows/desktop/aa376876(v=vs.85).aspx:Now, under certain circumstances it will terminate the Java application with error code
143
(SIGTERM
). See https://bugs.openjdk.java.net/browse/JDK-6871190.Well, anyway, what you need to stop this from happening is to start Java with the
-Xrs
option. From https://www.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.win.80.doc/diag/appendixes/cmdline/Xrs.html:So you should start your Java application with something like:
PS:
The relation between
SIGTERM
and143
number is explained in https://unix.stackexchange.com/questions/10231/when-does-the-system-send-a-sigterm-to-a-process#comment13523_10231.