title: How increase heap size in android studio?
body: <p>I have a problem that on my PC android studio are laging. It's not the newest a notebok but I have 8gb RAM. I try to increase memory to android studio by editing files: android-studio\bin\studio.exe.vmoptions and android-studio\bin\studio64.exe.vmoptions but it dosen't help me (allocate heap size dosen't change - it's 445M).</p>
  
  <p>My example studio64.exe.vmoptions is:</p>
  
  <pre><code>-Xms128m
  -Xmx2048m
  -XX:MaxPermSize=1024m
  -XX:ReservedCodeCacheSize=200m
  -XX:+UseCompressedOops
  -Dsun.io.useCanonCaches=false
  -Djava.net.preferIPv4Stack=true
  -Djna.nosys=true
  -Djna.boot.library.path=
  
  -XX:MaxJavaStackTraceDepth=-1
  -XX:+HeapDumpOnOutOfMemoryError
  -XX:-OmitStackTraceInFastThrow
  -ea
  </code></pre>
  
  <p>Do you know whhy heap size dosen't change (of course after restart android studio)</p>