title: Java maximum memory argument does not appear to work
body: <p>I have a Jar file that is ran in a server environment on demand, and I would like to limit the amount of memory that it uses so that multiple simultaneous instances can run comfortably. However, after setting the <code>-Xmx512M</code> parameter, it appears that Java is still using more memory than that. I am using the following command:</p>
  
  <pre><code> java -Xmx512M -jar Reporter.jar /tmp/REPmKLs8K
  </code></pre>
  
  <p>However I can see that the process is using more than this:</p>
  
  <pre><code>Resource:     Virtual Memory Size
  Exceeded:     1657 &gt; 400 (MB)
  Executable:   /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91.x86_64/jre/bin/java
  Command:      java -Xmx512M -jar Reporter.jar /tmp/REPmKLs8K
  </code></pre>
  
  <p>I'm not sure why this is, and it could potentially be an issue with the memory reporting software (ConfigServer Firewall). Has anyone experienced anything similar?</p>