How to create Heap Dump automatically when Java process Hits OutOfMemory Error?
<p>I have Java program running in Linux platform and it crash quite often;at this situation, I would like to have heapdump automatically.</p>

<p>Does anyone have script/method to create a Heap Dump Automatically when Java process Hits "OutOfMemory Error" on Linux?</p>

<p>I would appreciate your help.</p>