title: how to generate thread dump java on out of memory error
body: <ul>
  <li><p>does java 6 generate thread dump in addition to heap dump (java_pid14941.hprof) </p></li>
  <li><p>this is what happened to one of my applications.</p>
  
  <p>java.lang.OutOfMemoryError: GC overhead limit exceeded
  Dumping heap to java_pid14941.hprof ...</p></li>
  <li><p>I did find ava_pid14941.hprof in working directory, but didn't find any file which contains thread dump. I need to know what all the threads were doing when I got this OutOfMemory error.</p></li>
  <li><p>Is there any configuration option which will generate thread dump in addition to heap dump on out of memory exception?</p></li>
  </ul>