android - Strange app memory management -



android - Strange app memory management -

i developing android application , think performing pretty uncommon behaviour. when start app, move away pressing button , check cached background processes section of android's application manager shows me app's cached background process consuming ~10 mb of ram. well, seems totally normal, but, however, everytime open 1 time again , close pressing button , check app's memory consuption increases ~800 kb, means if open app 10 times , check memory consuption see consuming 10 mb + 10 * 800 kb = 18 mb. memory consuption rises every recreation of app's main activity (it means when rotate screen too) until reaches ~28 mb, goes downwards ~23 mb , stays between 23 , 28 mb independently how many times more open it. normal or should suspect memory leak?

i suggest read article how analyze apps memory consumption using mat. http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html?m=1 has helped me finding leaks before.

two of mutual errors i've seen: 1. long lived context references (e.g. holding ref. activity) 2. bitmap processing

android memory memory-management android-activity memory-leaks

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -