Trying to Increase Heap Size of Emulator in Android Studio
<p>To increase my heap size, I created a new file-studio.exe.vmoptions at </p>

<p><code>[Directory]/Users/[User Name]/Androidstudio2.1/studio.exe.vmoptions</code></p>

<p>This is the content of that file:</p>

<pre><code>-server
-Xms256m
-Xmx2048m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-da   -Djna.nosys=true
-Djna.boot.library.path=

-Djna.debug_load=true
-Djna.debug_load.jna=true
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-Didea.paths.selector=AndroidStudio2.1
-Didea.platform.prefix=AndroidStudio
</code></pre>

<p>I don't know if the heap size increased or not, but now Android Studio isn't working: it doesn't open now.</p>

<p>What changes should I make to this file or is it a bug in Android Studio?</p>