Android Studio消耗大量RAM

问题描述 投票:3回答:1

我有16 GB Ram的MacBook Pro 15。我只是在AndroidStudio中运行一个项目,它需要大约6 GB的RAM并使我的MacBook变慢。这是疯狂的东西是AndroidStudio 3.0的严重错误。

请查看截图,它有两个java实例,无需模拟器就占用了近3.5 GB的RAM。

这个问题有解决方案吗?我知道这个https://developer.android.com/studio/intro/studio-config.html#low_memory,但我有16 GB RAM它应该顺利处理事情而不需要调整。

出于某种原因,苹果将MacBook的RAM容量限制在16 GB,Android消耗了大部分内容,这使我感到沮丧,因为我无法升级愚蠢的RAM或修复Android Studio内存问题。

AndroidStudio insane memory consumption for single project

android performance android-studio ram android-studio-3.0
1个回答
0
投票

对于MacOS:

您可以使用ulimit buildin shell命令来限制系统范围资源的使用

您可以了解更多有关ulimit command here的信息

对于Windows:您可以检查this

p.s:在here上讨论了类似的问题

© www.soinside.com 2019 - 2024. All rights reserved.