-XX:[+|-]HitachiOutOfMemoryAbort (Forced termination option)

Format

-XX:+HitachiOutOfMemoryAbort
When OutOfMemoryError occurs, this option outputs the memory dump and executes forced termination.
-XX:-HitachiOutOfMemoryAbort
When OutOfMemoryError occurs, this option does not execute forced termination.

Description

When OutOfMemoryError occurs due to the following reasons, a message is output to the standard output and memory dump or core dump to the current directory, and then forced termination is executed.

Note that when C heap is insufficient during JavaVM processing, the process is forcefully terminated regardless of whether this option is specified.

Exit code for forced termination
The JavaVM exit code for forced termination is as follows:
In Windows
  • In Windows XP
    When the output of memory dump is successful: -2147483645
    When the output of memory dump fails: 1
  • In Windows Server 2012, Windows Server 2008, Windows 8, Windows 7, and Windows Vista
    1
In UNIX
6
Note that when executed on UNIX shell (such as sh and csh), 0x80 is added and the exit code becomes 0x86.
Default value
  • -XX:-HitachiOutOfMemoryAbort

Examples of output

java.lang.OutOfMemoryError occurred.
JavaVM aborted because of specified -XX:+HitachiOutOfMemoryAbort options.

Precautions