title: How to I get programmatic access to check -Xms -Xmx and -XX:MaxPermSize JVM argument values?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1518213/read-java-jvm-startup-parameters-eg-xmx">Read Java JVM startup parameters (eg -Xmx)</a>  </p>
  </blockquote>
  
  
  
  <p>I'm running an application on a Tomcat server, and I want to access the values of the <code>-Xms -Xmx</code> and <code>-XX:MaxPermSize</code> JVM argument values so that I can log them for help with debugging. </p>
  
  <p>I've tried to find these arguments listed in <code>System.properties</code>, and using <code>System.getEnv()</code>, but they are not there. Is there another way to get them, or, alternately, is their lack of presence in <code>System.properties</code> and <code>System.getEnv()</code> an indication that these options have not been set?</p>