title: CLion Out of Memory Issues
body: <p>I ran a simple <code>CLion</code> project with only two directories which each contain a single file. However, I was getting this message <code>“Out of Memory”</code>. I increased the <code>Xmx from 2GB to 4GB</code>. I believe this is more than enough. How can I fix this problem?</p>
  
  <p>This is the settings in the <code>clion64.exe.vmoptions</code> file: </p>
  
  <pre><code>   -Xss2m
     -Xms256m 
  
     -Xmx4000m
  
     -XX:MaxPermSize=350m
  
     -XX:ReservedCodeCacheSize=96m
  
     -XX:+UseConcMarkSweepGC
  
     -XX:SoftRefLRUPolicyMSPerMB=50
  
     -ea
  
     -Dsun.io.useCanonCaches=false
  
     -Djava.net.preferIPv4Stack=true
  </code></pre>