title: Get a heapdump on JVM from Tomcat 6
body: <p>How do I configure tomcat 6 so that if it crashes from an out of memory error I get a heap dump? </p>
  
  <p>I know <code>jmap</code> can be used to get it while it is running</p>
  
  <p>I can see information for how to to get it for tomcat 7
  <a href="http://blog.denevell.org/tomcat7-heap-dump-out-of-memory.html" rel="nofollow">http://blog.denevell.org/tomcat7-heap-dump-out-of-memory.html</a></p>
  
  <p>Thanks</p>