How do you simulate low memory in the Android emulator?

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.

Leave a Comment