Rabih Kadi
Rabih Kadi

Reputation: 71

Can't increase heap size

I keep on trying to increase the heap size inside of android studio, but the memory remains the same, anyone know why? Thanks in advance !

Look at how the heap memory is stuck on 494M

Upvotes: 2

Views: 1343

Answers (1)

Mel
Mel

Reputation: 1820

Click on Help -> Edit Custom VM Options.... If you don't have any VM options created, it'll prompt you to create one, accept it. Add / modify -Xmx with amount and type of data you want, like -Xmx8g for 8gb of heap. You should restart Android Studio afterwards so it'll take effect.

Edit: For more information about studio options, take a look at here.

Edit 2: If you have a problem with jps, make sure you added up $PATH for java home. See more details on this answer.

Upvotes: 1

Related Questions