how to eat up all the android memory in an android application? -


Recently, I'm testing the performance of swap partitions for Android devices. I need to eat all the memory in a test application (may be the root authority), so that some pages can be swaped. how can I do this? Thank you.

Since you can use ADB and have a bizbox, so you can use a shell script

Ripped from this reply

See:

#! Sleeping time in the "Bin / ash echo" type number [SufiFX] can be "echo" SFFX for second (default), 'm' for minutes, 'h' or 'd' days for hours Start reading all the "echo" memory for "read-p" & gt; late "echo" ... "$ 1000 in the index; $ Value = $ (seq -w -s' $ index $ ($ $ index + 100000)) eval array $ index = $ value done echo "... end allocation memory" echo "$ delay $ sleeping" sleep $ delay

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -