title: Optimizing Xms/Xmx/XX:MaxPermSize in JVM
body: <p>What are the necessary steps in getting a optimized value of <code>Xms/Xmx/XX:MaxPermSize</code>?</p>
  
  <p>Definitely I can set a large value but as you know GC take time in large memory. What are the <strong>general recommendation when I can spare the time in testing and finding these value</strong>?</p>
  
  <p>For example, is the following figures help?</p>
  
  <pre><code>Eden Space heap usage - 42MB / 62MB (used / committed)
  Survivor Space heap usage - 8.5MB / 8.5MB (used / committed)
  CMS Old Gen heap usage - 100MB / 217MB  (used / committed)
  Non-heap memory pool usage - 36MB
  </code></pre>