On Fri, 13 Oct 2023 03:23:04 GMT, xpbob <d...@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