7.8.5 -XX:[+|-]HitachiOutOfMemorySize
-XX:[+|-]HitachiOutOfMemorySize outputs the requested memory size when an OutOfMemoryError occurs.
Description
-XX:[+|-]HitachiOutOfMemorySize outputs the requested memory size when an OutOfMemoryError occurs.
Syntax
-XX:[+|-]HitachiOutOfMemorySize
Specifiable values
Type: String
- -XX:+HitachiOutOfMemorySize
-
Outputs the requested memory size (in bytes) when an OutOfMemoryError occurs.
When the -XX:+HitachiOutOfMemoryStackTrace option is specified, this option is also set.
- -XX:-HitachiOutOfMemorySize
-
Does not output the requested memory size when an OutOfMemoryError occurs.
Example
[OOM][Thread: 0x00062fd0]<Tue Dec 2 16:42:39 2003> [java.lang.OutOfMemoryError : requested 1024 bytes. (Java Heap) : 20 threads exist]
Notes
In the following cases, the requested memory size cannot be collected:
-
When the Java memory allocation functionality is not used and an OutOfMemoryError (including errors thrown by the J2SE class library) is explicitly thrown.
- Example:
-
throw new OutOfMemoryError();
-
When an OutOfMemoryError is caused by verifier during class loading.
[OOM][Thread: 0x00062fd0]<Tue Dec 2 16:42:39 2003> [java.lang.OutOfMemoryError : requested size unknown. (Unknown) : 10 threads exist]