views:

447

answers:

2

Is there an easy way to simulate low memory inside the emulator ? I'm interested to perform resource cleanups similar to this post

+9  A: 

Invoke ulimit command from the shell.

ulimit -Sv 10000

This will set current memory limit to 10 000 Kb, so that all apps invoked from this shell afterwards won't be able to access more memory.

Pavel Shved
How do you learn these things ? Lots of thanks.
Jacques René Mesrine
Does that work on windows?
Seun Osewa
A: 

Read the doc guys : http://developer.android.com/guide/developing/debug-tasks.html#additionaldebugging

Enjoy!