title: Valid values of -Xmx flag in java
body: <p>In every example I see of the -Xmx flag in java documentation (and in examples on the web), it is always a power of 2. For example '-Xmx512m', '-Xmx1024m', etc.</p>
  
  <p>Is this a requirement, or is it a good idea for some reason? </p>
  
  <p>I understand that memory in general comes in powers of 2; this question is specifically about the java memory flags.</p>