Skip to content

[Solved] this IDE is Running in low memory, also android studio keeps not responding

Last Updated on 2021-10-16 by Clay

Today when I using Android Studio for developing, I see a message pop up many times at the lower right corner:

this IDE is Running in low memory, also android studio keeps not responding


And every time the message appears, my Android Studio will crash, get stuck, and cannot continue to run.

Literally explained: IDE is operating with low memory, Android Studio remains unresponsive.

I repeatedly used the htop command on terminal to confirm, but my system has a total of 16 GB of memory, and the overall occupancy is only a little more than 7 GB. This makes me wonder where the problem is.

After searching on Internet, I found that I must actively configure the memory usage restrictions of Android Studio, so the Android Studio can run smoothly.


Solution

First we need to open the settings page of Android Studio to configure the memory. Different platforms have different opening methods.


Windows & Linux

Select File > Settings to open setting page.


MacOS

Select Android Studio > Preferences to open setting page.


Search "Memory" keyword and set the "max heap size"

Just set it according to the configuration of your own device.

This method did solved my problem. After I configured it, I did not get stuck again all night.


References


Read More

Leave a Reply