title: How do I Save the Heap (Dump to a File) in Eclipse?
body: <p>I'm getting this error when I run or debug my GA/AI from MyEclipse:</p>
  
  <p>Exception in thread "main" java.lang.OutOfMemoryError: Java heap space</p>
  
  <p>eclipse.ini looks like this:</p>
  
  <pre><code>-showsplash com.genuitec.myeclipse.product
  --launcher.XXMaxPermSize 256m
  -vmargs
  -Xms128m
  -Xmx512m
  -Duser.language=en 
  -XX:PermSize=128M 
  -XX:MaxPermSize=256M
  </code></pre>
  
  <p>MyEclipse is called like this:</p>
  
  <pre><code>"C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe" -vm "C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe"  -vmargs -Xms1448M -Xmx1448M
  </code></pre>
  
  <p>bumping the vm settings up from this:</p>
  
  <pre><code>"C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe" -vm "C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe"  -vmargs -Xms80M -Xmx1024M
  </code></pre>
  
  <p>has had no effect. So I'm trying to get it to dump the heap to a file, but placing these:</p>
  
  <pre><code>-XX:+HeapDumpOnCtrlBreak
  -XX:+HeapDumpOnOutOfMemoryError
  </code></pre>
  
  <p>in the Program arguments has had no effect. How do I get something to work with more memory usage analysis? jstack, for instance, is not currently available on Windows platforms. And using SendSignal has no effect that I can see.</p>
  
  <p><img src="https://imgur.com/KV4d.jpg" alt="a screen shot"></p>