-XX:HitachiOutOfMemoryHandlingMaxThrowCount (Option for setting up the maximum occurrence count)
- Organization of this page
Format
-XX:HitachiOutOfMemoryHandlingMaxThrowCount=integer-value
Description
This option specifies the upper limit on the total number of OutOfMemory errors that occur in the past hour due to shortage of the Java heap, metaspace area, or compressed class space if the OutOfMemory handling functionality is enabled.
The value specified in this option is used to determine the throw OutOfMemoryError exclusion condition.
The following explains the processing that is performed if OutOfMemory errors occur due to shortage of the Java heap, metaspace area, and compressed class space:
-
OutOfMemoryError is not thrown if the following condition is met: The total number of the current OutOfMemory error and other OutOfMemory errors that occurred in the past hour due to shortage of the Java heap, metaspace area, or compressed class space exceeds the maximum value specified for this option. The processing shifts to the forced termination functionality for OutOfMemory (-XX:+HitachiOutOfMemoryAbort) and JavaVM is terminated forcibly.
-
If you specify 0 as the value of this option and if the OutOfMemory error occurs, the processing necessarily shifts to the forced termination functionality for OutOfMemory and JavaVM is terminated forcibly.
-
If you specify 3600 as the value of this option, the throw OutOfMemoryError exclusion condition is not determined. In this case, when the OutOfMemory error occurs, the java.lang.OutOfMemoryError is necessarily thrown if a OutOfMemoryError throwing condition other than the throw OutOfMemoryError exclusion condition is satisfied.
- Default value
-
-
-XX:HitachiOutOfMemoryHandlingMaxThrowCount=60
-
- Prerequisite options
-
-
-XX:+HitachiOutOfMemoryHandling
-
Argument
- integer-value
-
Specify the upper limit on the total number of OutOfMemory errors that occur in the past hour due to shortage of the Java heap, metaspace area, or compressed class space.
0 to 3600 (3601 to 263-1 is handled as 3600).
Precautions
If a value other than a natural number is specified, the operation will be the same as when an un-defined option is specified.