4

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.

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
wanting252
  • 1,139
  • 2
  • 16
  • 22

2 Answers2

6

Try this:

Open the Android Virtual device manager:

enter image description here

Click on a device and select edit:

enter image description here

and then on Hardware click new:

enter image description here

After that select the option Device ram size:

enter image description here

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

enter image description here

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

0gravity
  • 2,682
  • 4
  • 24
  • 33
1

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.

Kai
  • 15,284
  • 6
  • 51
  • 82
  • I think over 800MB RAM is too expensive for me:D. 384MB-> 800MB, 128MB-> runs into INSTALL_FAIL_APK error. Hmm. – wanting252 Jul 18 '12 at 03:53
  • I really think you should just get another 2GB RAM and this problem would be solved, and your computer would run slightly faster with everything. ;) – Kai Jul 18 '12 at 03:58