Skip to content

Instantly share code, notes, and snippets.

@ntkachov
Last active August 29, 2015 14:16
Show Gist options
  • Save ntkachov/220c36b4ee77661b3f50 to your computer and use it in GitHub Desktop.
Save ntkachov/220c36b4ee77661b3f50 to your computer and use it in GitHub Desktop.
Increase Android Studio memory
#Note: Change the values to your system. On my 4Gb Ram MacBook Air, I use
#-Xms:128m -Xmx1250m XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=96m
#These values are for a 16Gb ram Mac
#Run this for the standard android studio
echo -e "-Xms1g \n-Xmx8g \n-XX:MaxPermSize=1g \n-XX:ResevedCodeCacheSize=500m" > ~/Library/Preferences/AndroidStudio/studio.vmoptions
#Run this for Android Studio 1.2 preview
echo -e "-Xms1g \n-Xmx8g \n-XX:MaxPermSize=1g \n-XX:ResevedCodeCacheSize=500m" > ~/Library/Preferences/AndroidStudioPreview1.2/studio.vmoptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment