<div dir="ltr"><div>Hi all,</div><div><br></div>I recently opened an RFE (<a href="https://bugs.openjdk.org/browse/JDK-8294052">https://bugs.openjdk.org/browse/JDK-8294052</a>) to make JVM flags such as -XX:+HeapDumpOnOutOfMemoryError and -XX:+ExitOnOutOfMemoryError work for OutOfMemoryErrors from filling up the NIO direct memory.<div>Supporting HeapDumpOnOutOfMemoryError would greatly help users debug OOMEs from NIO direct memory. In our case, the OOMEs from direct memory are infrequent and unpredictable, and it is quite infeasible to manually trigger a heap dump just before those OOMEs happen.</div><div><br></div><div><div>However, [~dholmes] seems a bit wary of supporting those JVM flags for NIO direct memory, as those JVM flags are currently for OOMEs thrown from the JVM, and for OOMEs about Java heap and metaspace, which are both managed by the JVM.</div><div><br></div><div>Do you think it is a good idea to support those JVM flags for OOMEs from NIO direct memory? Are there any concerns that we shouldn't support them?</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-Man</div></div></div></div></div></div>