title: How to get max Java VM higher than 2GB on ubuntu?
body: <p>My virtual memory won't go higher than 2GB when I has 8GB available.<br>
  I'm running Ubuntu 10.10 x86 with Java JRE 1.6_25 installed.</p>
  
  <p>When I try to launch the .jar file, it just an instantly crash.</p>
  
  <p>It works just fine when I set the VM to <code>2048M</code><br>
  These are the arguments I use to define the VM <code>-Xmx4096M -Xms4096M</code></p>
  
  <p>Thankful for any help :)</p>