title: increasing heap size in netbeans.conf file
body: <p>I was reading in netbeans 6, you don't have to set the maximum heap size, it will just look at your computer for that information.</p>
  
  <p>My system has 8 gigs of ram, but my application only has 64mb to play with and it is running out of memory.</p>
  
  <p>I did a:</p>
  
  <p>System.out.println(Runtime.getRuntime().maxMemory());</p>
  
  <p>And it is 66 650 112 bytes (63.5625 megabytes).</p>
  
  <p>my netbeans.config:</p>
  
  <pre><code>-J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m
  </code></pre>
  
  <p>I tried to change these numbers, but then netbeans failed to load (JVM error).</p>
  
  <p>How can I increase the maximum size to 1 GB?</p>