IBM WAS 8.5 错误重启

IBM WAS 8.5 restart on error

我们有一个部署在 WAS 7.5 上的应用程序,它会 运行 进入问题 out of heap memory 异常,它会自动重新启动。将它迁移到 WAS 8.5 后出现同样的错误,它不会重新启动。这是 WAS 8.5 的已知问题还是要为 WAS 8.5 设置一些配置选项?

该应用程序是使用 java/JSP 构建的。我们正在努力修复应用程序上的内存泄漏。我们还需要解决上面的配置问题

如果需要更多信息,请告诉我,我会编辑发布的问题。

我知道这是 jdk 上的一个函数。在 java 运行time to 运行 脚本上有一个参数,以防出现 OOM 情况。参见 http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html#BABCBGHF

-XX:OnOutOfMemoryError:

-XX:OnOutOfMemoryError=string

Sets a custom command or a series of semicolon-separated commands to run when an OutOfMemoryError exception is first thrown. If the string contains spaces, then it must be enclosed in quotation marks. For an example of a command string, see the description of the -XX:OnError option.

-XX:OnError=string

Sets a custom command or a series of semicolon-separated commands to run when an irrecoverable error occurs. If the string contains spaces, then it must be enclosed in quotation marks.

The following example shows how the -XX:OnError option can be used to run the userdump.exe utility to obtain a crash dump in case of an irrecoverable error (the %p designates the current process):

-XX:OnError="userdump.exe %p"

The preceding example assumes that the path to the userdump.exe utility is specified in the PATH environment variable.