Boost Android Studio speed by modifying default config

Bharat Kumar
1 min readApr 23, 2020

There are following ways by that you can reach configuration file-

  1. run below command in Terminal :
open -e /Applications/Android\ Studio.app/Contents/bin/studio.vmoptions

2. Open Application folder in Finder :

Just right-click on Android-Studio and click on Show Package Contents there you can find studio.vmoptions file, under content/bin folder

3. Open Android Studio :

Click Help > Edit Custom VM Options. If you have never edited VM options for Android Studio before, the IDE prompts you to create a new studio.vmoptions file. Click Yes to create the file.

Now you have reached your config file, you can just increase following values which will boost speed of your Android Studio.

Xmx specifies the maximum memory allocation pool for a Java Virtual Machine (JVM),

Xms specifies the initial memory allocation pool.

Your JVM will be started with Xms amount of memory and will be able to use a maximum of Xmx amount of memory.

Example configuration:

-Xms512m
-Xmx6154m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=512m

--

--