title: Java Eclipse Create Heap-Dump on Breakpoint
body: <p>How do I make a heapdump at a breakpoint in eclipse?</p>
  
  <p>My Java program has 2 versions that do the same thing with 2 different methods.<br>
  One of these methods runs into a Heap Space Exception but the other doesn't.</p>
  
  <p>I was able to get the heapdump for the one that encountered an error by setting the VM argument -XX:+HeapDumpOnOutOfMemoryError</p>
  
  <p>For the program using the method that doesn't get the error, I want to get a heapdump at a certain breakpoint. How can I do this?</p>