Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Hi there.
I've just installed Android Studio. But I have a problem with this IDE.
When the Android Studio is running, it uses a lot of RAM memory. The machine I'm running this IDE on that, have a 4GB RAM memory. Before running Android Studio, the RAM usage is on 40%, but after running this IDE the RAM memory usage goes on 85% !!!
So what can I do to use memory fewer than this? This amount of memory usage causes the machine to run so slow and sometimes to stop working.

Thanks.
Posted
Updated 26-Aug-17 7:29am
Comments
Sergey Alexandrovich Kryukov 20-Mar-15 12:42pm    
What do you mean "after"? Do you want to say that the RAM does not go down after your close the IDE? Then don't trust your source of information; all memory is reclaimed, for sure.
—SA
rogerfederer670 20-Mar-15 13:37pm    
I mean when i'm running Android Studio, RAM usage is so high! Such that when IDE is not running, RAM usage is on 35-40%, but when IDE is running the RAM usage is on 80-85%. This is the problem I have with Android Studio.
Sergey Alexandrovich Kryukov 20-Mar-15 14:40pm    
All right then. This is what it is...
—SA

You can do nothing to improve this. I am also using Android Studio, and it uses RAM similarly. That is why I don't prefer Google's software; Picasa, Chrome etc. They all are not memory efficient software. I prefer Microsoft's Visual Studio[^] or Eclipse[^] or NetBeans[^] IDE. They're all better than Android Studio; Visual Studio doesn't support native Android development.

There is only one solution, you should use Eclipse which uses less RAM, and does the same thing, provides an IDE for your development processes, also note that before Android studio, Eclipse was supported as the IDE for development of Android applications. But it is not official anymore.
 
Share this answer
 
Comments
rogerfederer670 20-Mar-15 12:36pm    
OK thanks. I hope google improve it as soon as possible.
Hi I'm change the gradle properties file and it's work for me ;-)
Open 'gradle.properties' file in editor and change it like this:

Original:
Java
org.gradle.jvmargs=-Xmx1536m


Change to:
Java
org.gradle.jvmargs=-Xms512m -Xmx1024m


The 'Xms' is minimum and 'Xmx' is maximum memory of the gradle can use it.
So the value of that is depend of your system memory (RAM).

I hope this solution is work for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900