Sunday, 23 May 2021

Reduce RAM usage on Android Studio for under 4GB memory system




If you are running Android Studio on a machine with less than the recommended specifications (see System Requirements), you can customize the IDE to improve performance on your machine, here simple tricks help you to reduce RAM usage on Android studio while running (safe Method).

How to RAM reduce on Android studio:

1st: Menu>Help>Edit Custom VM Options.


2nd: add following line trough the picture below:

-Xmx512m
-Xms128m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=2048m


Don't forget to remove duplicates.


3rd: Go to Project files> Open gradle.properties:


4th: edit following line trough the picture below:

org.gradle.jvmargs to org.gradle.jvmargs=-Xmx512m -Xms128m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=2048m -Dfile.encoding=UTF-8


5th: Go Menu>File>Save All

6th: Restart Android Studio App

Done Happy Developing. Feel free to leave a comment if anything wrong or any other queries.

No comments:

Post a Comment