4.7.4 Precautions to be taken when class-wise statistical information is output in the thread dump
If -XX:+HitachiOutOfMemoryAbortThreadDumpWithJHeapProf is set up in the JavaVM startup option, a class-wise statistical information is output in the thread dump when forced termination is performed using OutOfMemoryError.
When you use a large amount of heap (Java heap, Explicit heap, or Metaspace area), it takes time to output the class-wise statistical information in the thread dump. Therefore, when OutOfMemoryError occurs, a JavaVM might not be able to be recovered at once if terminated forcibly.
- Important note
-
If the following startup options of JavaVM are not set, the class-wise statistical information is not output in the thread dump:
-
-XX:+HitachiOutOfMemoryAbort
-
-XX:+HitachiOutOfMemoryAbortThreadDump
-
-XX:+HitachiThreadDump
-