I am using Java17 in the container environment.
I set -XX:+ExitOnOutOfMemoryError
because I want the JVM to exit when an OutOfMemoryError occurs.
And I also set dumponexit=true
to output the JFR on JVM exit.
But when the JVM exits with an OutOfMemoryError, JFR does not print.
Is it possible to set it to output?
Below is an example of a boot parameter.
java -XX:+ExitOnOutOfMemoryError -XX:StartFlightRecording: dumponexit=true app.jar