-XX:[+|-]HitachiOutOfMemorySize (Option to output the memory size)
- Organization of this page
Format
- -XX:+HitachiOutOfMemorySize
-
When OutOfMemoryError occurs, this option outputs the requested memory size in bytes.
When the -XX:+HitachiOutOfMemoryStackTrace option is specified, the -XX:+HitachiOutOfMemorySize option is also specified.
- -XX:-HitachiOutOfMemorySize
-
When OutOfMemoryError occurs, this option does not output the requested memory size.
Description
Output the requested memory size when OutOfMemoryError occurs.
- Default value
-
-
-XX:-HitachiOutOfMemorySize
-
Examples of output
[OOM][Thread: 0x00062fd0]<Tue Dec 2 16:42:39 2003>[java.lang.OutOfMemoryError : requested 1024 bytes. (Java Heap) : 20 threads exist]
Precautions
In the following cases, the requested memory size is not fetched:
-
When OutOfMemoryError is clearly thrown without using the memory secure functionality of Java (errors thrown by J2SE class library are also included).
Example: throw new OutOfMemoryError();
-
When 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]