RFR: 8318058: Notify the jvm when the direct memory is oom
Alan Bateman
alanb at openjdk.org
Fri Oct 13 06:13:21 UTC 2023
On Fri, 13 Oct 2023 03:23:04 GMT, xpbob <duke at openjdk.org> wrote:
> Big data processes often experience situations where the direct memory oom process is alive but not serving properly. If the direct memory is oom, code can notify the jvm. Can bring the following benefits:
> 1. Analysis of direct memory Java. Nio. DirectByteBuffer need heapdumps reference relations. Can be used directly HeapDumpOnOutOfMemoryError.
> 2. In container environment, ExitOnOutOfMemoryError can be used to let the process that cannot provide services exit, so that the container can quickly pull up a new pod
JDK-8294052 has some of the previous discussion on this issue.
See also this thread where Man, Thomas, David and I discussed the topic:
https://mail.openjdk.org/pipermail/nio-dev/2022-September/012119.html
There were previous threads on the same topic, I can't find the links right now.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16176#issuecomment-1760950115
More information about the nio-dev
mailing list