-XX:+HeapDumpOnOutOfMemoryError only generates 1 snapshot?

I'm testing with -XX:+HeapDumpOnOutOfMemoryError, it seems like it would only dump the heap once on the first OutOfMemoryError and would not dump it again.

Is there an option to force it to dump again? I was hoping to use a piece of code to artificially trigger an OutOfMemoryError to get heap dumps whenever I want with JDK1.5.0_07.

[347 byte] By [samueltoa] at [2007-10-3 2:57:41]
# 1
HiDoes jmap do what u want?jmap -heap:format
fuishiena at 2007-7-14 20:47:01 > top of Java-index,Core,Monitoring & Management...
# 2
jmap can only dump heap with JDK 6. I was trying to dump heap with JDK 5 by artificially creating an OutOfMemoryError. But it turns out it only dump it once, which makes sense, but I was trying to see if there is some switch to allow me to dump more than once.
samueltoa at 2007-7-14 20:47:01 > top of Java-index,Core,Monitoring & Management...
# 3
HiIts in.See http://java.sun.com/j2se/1.5.0/ReleaseNotes.html#150_05 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5109224but u gotta do it manually.
fuishiena at 2007-7-14 20:47:01 > top of Java-index,Core,Monitoring & Management...