- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们有一个部署在 WAS 7.5 上的应用程序,它会遇到堆内存不足
异常问题,它会自动重新启动。将其迁移到 WAS 8.5 并出现相同错误后,它不会重新启动。这是 WAS 8.5 的已知问题还是需要为 WAS 8.5 设置一些配置选项?
该应用程序是使用 java/JSP 构建的。我们正在努力修复应用程序上的内存泄漏。我们还需要解决上面的配置问题。
如果需要更多信息,请告诉我,我将编辑发布的问题。
最佳答案
我知道这是jdk上的一个函数。 java 运行时有一个参数用于在 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.
关于java - IBM WAS 8.5 出错时重新启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39118283/
我是一名优秀的程序员,十分优秀!