title: JBoss 7 Memory Configuration for 4G Memory, 64-bit
body: <p>I use the following memory setting in <code>standalone.con.bat</code> in <code>JBoss 7.1.1 Final</code>. </p>
  
  <p><code>set "JAVA_OPTS=-Xms1024M -Xmx2048M -XX:MaxPermSize=512M -XX:MaxHeapSize=512M"</code></p>
  
  <p>My Production Server can available over 4G or above. But, I cannot start the server. The over 70 users  can access with uploaded file concurrently. </p>
  
  <p><strong>Error :</strong> </p>
  
  <pre><code> Error occurred during initialization of VM
   Incompatible minimum and maximum heap sizes specified
  </code></pre>
  
  <p>How can I set large memory?
  I am not sure this setting is suitable solution between the users and sever specification.
  Any body suggest to me?  </p>