title: max memory size ignored in netbeans using windows
body: <p>I am not sure if this is a valid stackoverflow question!</p>
  
  <p>I have installed netbeans on a windows xp machine. However this machine has very limited memory. Since Netbeans uses most memory I wanted to limit the size of memory Netbeans uses.</p>
  
  <p>From what I can read on this <a href="https://performance.netbeans.org/howto/jvmswitches/" rel="nofollow">page</a> is that I can use either the <code>-J-Xmx256m</code> switch or the <code>–J-XX:MaxPermSize</code> switch inside a config file: <em>./etc/netbeans.conf</em>.</p>
  
  <p>So I changed it like this:</p>
  
  <pre><code>netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:MaxPermSize=256m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"
  </code></pre>
  
  <p>I tried both options, however Netbeans either doesn't starts up or doesn't uphold the new policy if it starts. When it starts I see a memory increase above the specified 256megabytes for netbeans in my task manager.</p>
  
  <p>What am I doing wrong?</p>