title: Java seems to ignore -Xms and -Xmx options
body: <p>I'd like to run a very simple bot written in java on my VPS.
  I want to limit jvm memory to let's say 10MB (I doubt it would need any more).</p>
  
  <p>I'm running the bot with the following command:</p>
  
  <blockquote>
    <p>java <strong>-Xms5M -Xmx10M</strong> -server -jar
    IrcBot.jar "/home/jbot"</p>
  </blockquote>
  
  <p>But <code>top</code> shows that actual memory reserved for java is <code>144m</code> (or am I interpreting things wrong here?).</p>
  
  <blockquote>
    <p>13614 jbot      17   0  <strong>144m</strong>  16m 6740
    S  0.0  3.2   0:00.20 java</p>
  </blockquote>
  
  <p>Any ideas what can be wrong here?</p>
  
  <p>Java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode)</p>
  
  <p>BTW. I'm running CentOS - if it matters.</p>
  
  <p>EDIT:
  Thank you for your answers. </p>
  
  <p>I can't really accept any of them, since it turns out the problem lies within the language i choose to write the program, not the JVM itself.</p>