简体   繁体   English

IBM WAS 8.5错误重新启动

[英]IBM WAS 8.5 restart on error

We have an application which was deployed on WAS 7.5 and it would run into the issue out of heap memory exception it would automatically restart. 我们有一个部署在WAS 7.5上的应用程序,它将遇到out of heap memory的问题,它将自动重新启动。 After migrating it to WAS 8.5 with the same error it won't restart. 将其迁移到具有相同错误的WAS 8.5后,将不会重新启动。 Is this a known issue with WAS 8.5 or there is some configuration option to be set for WAS 8.5? 这是WAS 8.5的一个已知问题,还是为WAS 8.5设置了一些配置选项?

The application is built using java/JSP. 该应用程序是使用java / JSP构建的。 We are working on fixing memory leaks on the application. 我们正在努力修复应用程序上的内存泄漏。 We also need to solve the above configuration problem. 我们还需要解决上述配置问题。

Let me know if some more information is required, will edit the question posted. 让我知道是否需要更多信息,将编辑发布的问题。

I know this as a function on the jdk. 我知道这是在jdk上的功能。 There is a parameter on the java runtime to run a script in case of an OOM situation. 在Java运行时上,有一个参数可以在OOM情况下运行脚本。 See http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html#BABCBGHF 参见http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html#BABCBGHF

-XX:OnOutOfMemoryError : -XX:OnOutOfMemoryError

-XX:OnOutOfMemoryError=string -XX:OnOutOfMemoryError =字符串

Sets a custom command or a series of semicolon-separated commands to run when an OutOfMemoryError exception is first thrown. 设置自定义命令或一系列用分号分隔的命令,以在首次引发OutOfMemoryError异常时运行。 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选项的描述。

-XX:OnError=string -XX:OnError =字符串

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指定当前进程)的情况下获取故障转储:

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

The preceding example assumes that the path to the userdump.exe utility is specified in the PATH environment variable. 前面的示例假定在PATH环境变量中指定了userdump.exe实用工具的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM