title: java option Heap dump on out of memory
body: <p>In Hotspot JVM 1.4.2, I used the option <code>-XX:+HeapDumpOnOutOfMemoryError</code> and it says unknown option. How do I get Heap Dump in this JVM. (I cannot migrate to JVM 6 as its a legacy application running here since years).</p>