CAUTION: This site hosts draft documentation for the next release. For published content of the latest release, visit www.eclipse.org/openj9/docs

-XX:[+|-]ExitOnOutOfMemory

This HotSpot option is recognized by OpenJ9. You can use the option to trigger a VM shut down on out-of-memory conditions.

Note: Java™, heap, snap, and system dumps are enabled by default but can be disabled by including -XX:-HeapDumpOnOutOfMemoryError.

Syntax

    -XX:[+|-]ExitOnOutOfMemory
Setting Effect Default
-XX:+ExitOnOutOfMemory Enable
-XX:-ExitOnOutOfMemory Disable yes