JDK-8152669 : Release Note: New JVM Options: ExitOnOutOfMemoryError and CrashOnOutOfMemoryError
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7u101,8u92,9
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2016-03-24
  • Updated: 2022-06-14
  • Resolved: 2017-04-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u101Resolved 8u92Resolved
Related Reports
Relates :  
Description
Two new JVM flags have been added:

ExitOnOutOfMemoryError
When you enable this option, the JVM exits on the first occurrence of an out-of-memory error. It can be used if you prefer restarting an instance of the JVM rather than handling out of memory errors.

CrashOnOutOfMemoryError
If this option is enabled, when an out-of-memory error occurs, the JVM crashes and produces text and binary crash files (if core files are enabled).
Comments
Fixed flag names in synopsis and description.
26-01-2017

From JDK-8154713, "The correct options are "ExitOnOutOfMemoryError" and "CrashOnOutOfMemoryError" " The Release Notes have been corrected but the description above needs to be updated as well.
20-04-2016

Added to 8u92 and 7u101 Release Notes
24-03-2016