Skip to content

Instantly share code, notes, and snippets.

@lopspower
Last active August 16, 2021 04:19
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lopspower/5b3bce48135c888bc603 to your computer and use it in GitHub Desktop.
Save lopspower/5b3bce48135c888bc603 to your computer and use it in GitHub Desktop.
Increase Android Studio memory

Increase Android Studio memory

Twitter

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

⚠️ 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

ℹ️ If you want more information, check this link: http://tools.android.com/tech-docs/configuration

ℹ️ EDIT:

You can find all this gist on Medium here -> Improve your experience on Android Studio


📚 Best Android Gists

You can see other best Android Gists or offer your just here https://github.com/lopspower/BestAndroidGists 👍.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment