-XX:[+|-]HitachiOutOfMemoryCause (Option to output the causes of exception)

Format

-XX:+HitachiOutOfMemoryCause
When OutOfMemoryError occurs, this option outputs the types of causes for exceptions in the JavaVM log file. When the -XX:+HitachiOutOfMemoryStackTrace option is specified, the -XX:+HitachiOutOfMemorySize option is also specified.
The following table describes the types of the causes that are output:
When OutOfMemoryError is thrown because the functionality for setting up the maximum number of threads (HitachiThreadLimit option) is specified and the number of created threads exceeds the specified limit.

Table 16-7 List of types of exception causes

No.Cause messageDescription
1C HeapException when securing the C heap
2Java HeapException when securing the Java heap
3Perm HeapException when securing the Perm heap
4UnknownException not identified as one of the above
5Thread LimitException thrown when the functionality for setting up the maximum number of threads (-XX:HitachiThreadLimit option) is specified and the number of created threads exceed the specified limit.
-XX:-HitachiOutOfMemoryCause
When OutOfMemoryError occurs, the -XX:-HitachiOutOfMemoryCause option does not output the types of causes for exceptions in the JavaVM log file.

Description

Specify whether to output the types of causes for the occurrence of OutOfMemoryError.

Default value
  • -XX:-HitachiOutOfMemoryCause

Examples of output

[OOM][Thread: 0x00062fd0]<Tue Dec 2 16:42:39 2003>[java.lang.OutOfMemoryError :(C Heap) : unable to create thread : 340 threads exist]