-XX:-HeapDumpOnOutOfMemoryError in 1.4.2_13
We are using the sun 1.4.2_13 jre for our application.We want to get a heap dump file when an OutOfMemoryError occurs and the Hotspot documentation says that this option (-XX:-HeapDumpOnOutOfMemoryError) was introduced in 1.4.2 update 12 -- so it sounds like it is a perfect solution to the problem. Unfortunately it does not seem to work. Should it work in 1.4.2 update 13?
Are other options required to enable this option's behavior? I've tried playing around with the -XX:HeapDumpPath option in concert with it as well but again - no joy.
Any help would be much appreciated. Thanks.
[606 byte] By [
wwfsmda] at [2007-11-27 8:46:28]

# 2
Thanks for the quick response! Your correction works like a champ.
Is there a known problem with the documentation? The documentation in this URL is wrong:
http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp#DebuggingOptions
Excerpt:
...........
-XX:-HeapDumpOnOutOfMemoryErrorDump heap to file when java.lang.OutOfMemoryError is thrown. Manageable. (Introduced in 1.4.2 update 12, 5.0 update 7.)
=======
Regardless - thanks again!
# 4
I should RT(entire)FM page as I should have seen the convention documented at the top of the page.
It seems like only the Debugging Options section is using the incorrect minus option for enabling its 16 boolean options - the other sections (Behavioral and Performance) are correctly using the plus sign.
Thanks.
# 5
> It seems like only the Debugging Options section is
> using the incorrect minus option for enabling its 16
> boolean options - the other sections (Behavioral and
> Performance) are correctly using the plus sign.
FWIW, the page uses the -XX:- or -XX:+ to show the default state of the option ('-' is disabled by default, '+' enabled by default). The debugging options are all disabled by default, so they are all listed as -XX:-<option> (e.g., -XX:-HeapDumpOnOutOfMemoryError).
In the other sections, only a few of the options are disabled by default. One example is -XX:-UseISM, in the performance section.
jxca at 2007-7-12 20:48:53 >
