title: Tomcat memory consumption is more than heap + permgen space
body: <p>I am observing a mismatch in Tomcat RAM consumption between what the OS says and what jVisualVM says.</p>
  
  <p>From htop, the Tomcat JVM is has <strong>993 MB</strong> of resident memory</p>
  
  <p>From jVisualVM, the Tomcat JVM is using</p>
  
  <ul>
  <li>Heap Max: 1,070,399,488 B</li>
  <li>Heap Size: <strong>298.438.656 B</strong></li>
  <li>Heap Used: variable, between 170MB and and 270MB</li>
  <li>PermGen Max: 268,435,456 B</li>
  <li>PermGen Size: <strong>248,872,960 B</strong></li>
  <li>PermGen Used: slightly variable, around 150MB</li>
  </ul>
  
  <p>From my understanding the OS memory consumption should be Heap Size + PermGen Size ~= 522 MB. But that's <strong>471 MB less</strong> than what I'm observing. </p>
  
  <p>Anyone got an idea what am I missing here? </p>
  
  <p>PS: I know that my max heap is much higher than what is used, but I'm assuming that should have no effect if the JVM does not use it (i.e. Heap Size is lower).</p>
  
  <p>Thanks!
  Marc</p>