With the following JVM options:
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/tmp"
The JVM will download the heap contents to a file in the specified directory. Note that this only happens when an OutOfMemoryError
thrown, since a dump is not needed if the JVM crashed for another reason.
Edit: "Logical parameters are enabled with -XX: + and disabled with -XX: -." docs
source share