How to reduce the memory used by the android emulator?

怎甘沉沦 提交于 2019-12-06 05:12:12

问题


Is there a way to reduce memory used by android emulator? When I turn on Resource Monitor, It commits over 800MB(I guess this is the reason for all my computer's lags)!

My info:

OS: Window 7, 2GB RAM, CPU core i3.

Emulator: Device RAM size: 512MB, data partition size: 384MB, Skin: HVGA 480x320, SD Card: 4GiB.


回答1:


Try this:

Open the Android Virtual device manager:

Click on a device and select edit:

and then on Hardware click new:

After that select the option Device ram size:

Then just put the value that you want and click on Edit AVD:

Hope that helps. Also as you may notice you can change other properties that might be useful.




回答2:


One solution is to reduce the Device RAM to maybe 384 MB or 256 MB, as long as you keep the VM RAM size the same it should not affect how your app run in the emulator (except maybe making the emulator run even slower)

But if you want to do software development, 4GB RAM should be the minimum, RAMs are very cheap right now and you really should sharper your tools anyway.



来源:https://stackoverflow.com/questions/11533818/how-to-reduce-the-memory-used-by-the-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!