-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Feature request
Following on the addition of heap dumps, support for -XX:+HeapDumpOnOutOfMemoryError should be added. This flag enables the heap dump to be dumped in the event of an out of memory error.
Describe who do you think will benefit the most.
-XX:+HeapDumpOnOutOfMemoryError is a flag that is commonly used in Java programs. Now that heap dumps can be retrieved on demand, Java developers would expect this flag to be available. Heap dumps are needed the most when the JVM is running out of memory.
Describe alternatives you've considered.
The alternative would be for a user to somehow be alerted when an OOME is reported and for the user to request a heap dump manually or via some automation.
I'd like to contribute this feature.
thomaswue and koutheir