Increase IntellijIDEA (Android Studio) Heap size (Memory limit) in Mac


Step 1

Open Terminal

Step 2

run command:

For IntellijIDEA 12:
open -e /Applications/IntelliJ\ IDEA\ 12.app/bin/idea.vmoptions

For IntellijIDEA 13:
open -e /Applications/IntelliJ\ IDEA\ 13.app/bin/idea.vmoptions

For Android Studio:
open -e /Applications/Android\ Studio.app/bin/idea.vmoptions

Step 3

A text file will be opened like this

-Xms128m
-Xmx800m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops

Step 4

change:
-Xms128m

to

-Xms256m

and

-Xmx800m

to

-Xmx1024m

if you have enough memory then you may increasing the size more.

Step 4.1

Finally it will look like

-Xms256m
-Xmx1024m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops

Step 5

Save the text file and close it. Restart IntellijIDEA (Android Studio)

4 thoughts on “Increase IntellijIDEA (Android Studio) Heap size (Memory limit) in Mac

  1. @experion,
    Please do not make such a vague comment. Use your intelligence. At least mention what is the error or at which step you got stuck. Possibly, you are stuck at Step 1 and couldn’t open the terminal. There is no clue.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s