title: Heap/ PermGen setting issues in tomcat under eclipse
body: <p>A colleague has the following setting in Eclipse / Tomcat run parameters, and complains of out of heap memory all the time:</p>
  
  <pre><code>-XX:PermSize=512M
  -XX:MaxPermSize=1024M
  -Xmx1024m
  </code></pre>
  
  <p>If I understand this correctly, both the <code>max PermGen</code> and <code>max Heap</code> are each 1 GB.  Since <code>PermGen</code> is a special part of the Heap, this amounts to allocating all of the heap to <code>PermGen</code>. Is this correct?</p>
  
  <p>Per <a href="https://stackoverflow.com/questions/4848669/perm-space-vs-heap-space">Perm Space vs Heap Space</a>, I might be correct.  Would this be causing the issue? </p>
  
  <p>Per <a href="https://stackoverflow.com/questions/4223809/is-java-permgen-space-part-of-the-total-vm-memory">Is Java PermGen Space Part of Total VM Memory</a>, my understanding is not correct.</p>