I have got a large (5GB) hprof dump, created by application when OutOfMemoryError
occurred. (Using XX: HeapDumpOnOutOfMemoryError ).
Unfortunately there
To turn on an option your need +
and to turn off an option you need -
What is confusing about the documentation is that it shows the default setting to make it "clear" what setting you have already. The ones with + are on by default and the ones with - are off by default. This means if you copy any of the + or - options from the documentation they should do nothing (except where the default has changed over time)
-XX:-HeapDumpOnOutOfMemoryError turns off the heap dump, which is the default.
-XX:+HeapDumpOnOutOfMemoryError turns on the heap dump.