Increase Android Studio memory
###Locate the configuration file
Run command:
touch ~/Library/Preferences/AndroidStudioX.X/studio.vmoptions
open -e ~/Library/Preferences/AndroidStudioX.X/studio.vmoptions
This is my configuration:
-Xms256m
-Xmx4096m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
:warning: Once you make the changes, don't forget to RESTART Android Studio.
###Other
If you want to fall back to default values (Android Studio 2.2), here it is:
-Xms256m
-Xmx1280m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
:information_source: If you want more information, check this link: http://tools.android.com/tech-docs/configuration
You can see other best Android Gists or offer your just here https://github.com/lopspower/BestAndroidGists :+1:.