OutOfMemoryError throws out of JVM won't notify hotspot, so debug.cpp::report_java_out_out_memory won't handle it. More details are in JDK-8257790.
The following flags won't respect OOME from java libraries. We need to make the description more clear to users.
HeapDumpOnOutOfMemoryError -- "Dump heap to file when java.lang.OutOfMemoryError is thrown"
OnOutOfMemoryError -- "Run user-defined commands on first java.lang.OutOfMemoryError"
CrashOnOutOfMemoryError -- "JVM aborts, producing an error log and core/mini dump, on the first occurrence of an out-of-memory error"
ExitOnOutOfMemoryError -- "JVM exits on the first occurrence of an out-of-memory error"
The following flags won't respect OOME from java libraries. We need to make the description more clear to users.
HeapDumpOnOutOfMemoryError -- "Dump heap to file when java.lang.OutOfMemoryError is thrown"
OnOutOfMemoryError -- "Run user-defined commands on first java.lang.OutOfMemoryError"
CrashOnOutOfMemoryError -- "JVM aborts, producing an error log and core/mini dump, on the first occurrence of an out-of-memory error"
ExitOnOutOfMemoryError -- "JVM exits on the first occurrence of an out-of-memory error"
- relates to
-
JDK-8346477 Clarify the Java manpage in relation to the JVM's OnOutOfMemoryError flags
-
- Resolved
-
-
JDK-8257790 ExitOnOutOfMemoryError doesn't cover OOMEs from Java libraries
-
- Closed
-