title: Spring Boot memory consumption increases beyond -Xmx option
body: <p>I noticed Spring Boot application does not obey the amount of memory set via Xmx option.
  For example: java -Xss64m -Xmx64m -jar test.jar</p>
  
  <p>I also printed on console the amount of memory really used by application at startup, and shows:
  Max memory: 61M</p>
  
  <pre><code>long maxBytes = Runtime.getRuntime().maxMemory();
  System.out.println("Max memory: " + maxBytes / 1024 / 1024 + "M");
  </code></pre>
  
  <p>When I open Windows processes before accessing any web page, it shows +-105M, so how can Java say 61M?</p>
  
  <p>After accessing any web page it goes from +-125M to +-135M. Why is there such increase? It should give "java.lang.OutOfMemoryError: PermGen space" but do not increase this way.</p>
  
  <p>It makes me get worried, if many applications could run out of memory at the server. By the way, I am using Java 1.8_45</p>