title: PHPStorm/Webstorm increase memory to more than 512MB
body: <p>I'm using <code>PHPStorm</code> under <code>Win7 64bit</code> with <code>64bit Java (latest version I guess)</code> and working currently on an insanely big and chaotic project. There are many classes containing <code>10k LOC</code> and more. Therefore my <code>PHPStorm</code> runs out of memory once in a while.</p>
  
  <p>I get this nice <code>Out-of-Memory</code> dialog suggesting increasing my memory settings. I currently have set in my <code>PhpStorm.exe.vmoptions</code>:</p>
  
  <pre><code>-server
  -Xms128m
  -Xmx512m
  -XX:MaxPermSize=250m
  -XX:ReservedCodeCacheSize=64m
  -ea
  -Dsun.io.useCanonCaches=false
  -Djava.net.preferIPv4Stack=true
  -XX:+UseCodeCacheFlushing
  -XX:+UseConcMarkSweepGC
  -XX:SoftRefLRUPolicyMSPerMB=50
  </code></pre>
  
  <p>The problem is: When I increase my memory to be used in this file I get the following error when starting the program:</p>
  
  <blockquote>
    <p>Failed to create JVM: Error code -4</p>
  </blockquote>
  
  <p>I Googled around but nobody seems to want the memory to be <strong>more</strong> than <code>512MB</code>.</p>
  
  <p><strong>Does anybody know what I can do to use PHPStorm without any hassle again?</strong></p>
  
  <p>Sure, I can reset the cache but this is not a permanent solution, right?</p>
  
  <p>I read somewhere that adding this line to my <code>vmoptions</code> is a good idea, but I don't see any difference:</p>
  
  <pre><code>-server
  ....
  -XX:MinHeapFreeRatio=15
  </code></pre>