运行Android Studio Profiler时的性能问题:IDE的内存不足 [英] Performance issues when running Android Studio Profiler: The IDE is running low on memory

查看:575
本文介绍了运行Android Studio Profiler时的性能问题:IDE的内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行Android Studio Profiler时,生成两个或三个堆转储"后,在底部显示此消息:

When running Android Studio Profiler I get this message at the bottom after generating two or three "heap dumps":

 The IDE is running low on memory and this might affect performance. Please consider increasing available heap.

即使停止分析器后,收到此消息后,我的PC仍然运行非常缓慢,并且恢复性能的唯一选择是重新启动Android Studio.

My PC runs really slow after getting this message even after stopping the profiler and the only option to restore performance is restarting Android Studio.

为什么会这样?在项目上生成堆转储后,还有其他方法可以恢复性能吗?

Why is this happening? Is there any other way to restore the performance after generating a heap dump on a project?

推荐答案

将"IDE最大堆大小"从1280 MB(默认)设置为2048 MB后,性能得到改善:

Performance is improved after setting 'IDE Max Heap size' from 1280 MB(Default) to 2048 MB:

文件->设置->外观和行为->系统设置->内存设置

File --> Settings --> Appearance & Behavior --> System Settings --> Memory Settings

这篇关于运行Android Studio Profiler时的性能问题:IDE的内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆