Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


7.8.4 -XX:[+|-]HitachiOutOfMemoryCause

-XX:[+|-]HitachiOutOfMemoryCause outputs the type of the cause of the error when an OutOfMemoryError occurs.

Description

-XX:[+|-]HitachiOutOfMemoryCause specifies whether to output the type of the cause of the error when an OutOfMemoryError occurs.

The following shows the cause types that can be output.

Table 7‒7: List of exception cause types

No.

Cause message

Description

1

C Heap

Exception caused when allocating a C heap

2

Java Heap

Exception caused when allocating a Java heap

3

Meta Space

Exception caused when allocating Metaspace

4

Compressed Class Space

Exception caused when allocating Compressed Class Space

5

Unknown

Exception that cannot be identified as one of the above exceptions

6

Thread Limit

Exception caused when the maximum number of threads is specified in the -XX:HitachiThreadLimit option and the number of created threads exceeds the specified maximum number.

Syntax

-XX:[+|-]HitachiOutOfMemoryCause

Specifiable values

Type: String

-XX:+HitachiOutOfMemoryCause

Outputs the exception cause type to the Java VM log file when an OutOfMemoryError occurs.

When the -XX:+HitachiOutOfMemoryStackTrace option is specified, this option is also set.

-XX:-HitachiOutOfMemoryCause

Does not output the exception cause type to the Java VM log file when an OutOfMemoryError occurs.

Default value

If the definition item is omitted:

-XX:-HitachiOutOfMemoryCause

Example

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