如何减少Android Studio的内存使用(也适用于Eclipse) [英] How to decrease memory usage for Android Studio (also works for Eclipse)
问题描述
使用Android Studio几个月后,我对使用多少内存感到非常沮丧:
After some months using Android Studio, i was very upset of how much memory it was using:
- IDE的2GB
- 用于Gradle构建的1GB
- 〜1GB(用于正在运行的Java应用程序)
如何减少内存使用量? (下面的答案)
How to decrease memory usage? (ANSWER BELOW)
推荐答案
现在我尝试了一件事:我卸载了所有Java 64位并替换为Java 32位.然后,我更新了JAVA_HOME以指向新位置,然后重新启动了Windows 10笔记本.
Now i tried one thing: i uninstalled all Java 64 bit and replaced by Java 32 Bit. Then i updated the JAVA_HOME to point to the new location and rebooted my Windows 10 notebook.
Android Studio已经带有32位版本,但是您需要下载特定的32位版本的Eclipse.
Android Studio already comes with the 32-bit flavor, but you need to download a specific 32-bit version of Eclipse.
现在我明白了:
- 〜1GB for IDE
- 用于Gradle的360MB
- 正在运行的Java应用程序为120MB
我还将FireFox降级为32位,现在只占用一半的内存.
I also downgraded FireFox to 32 bits, and now it takes half memory.
HTH,
引导
这篇关于如何减少Android Studio的内存使用(也适用于Eclipse)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!