Reputation: 21596
I have an app, which is doing some basic operations like: download files, install files, query the phone, Using threads, HttpClient connections, etc.. (nothing too complicated).
it's also running a perm service inside(kind of Listener)
The wierd thing is: when I first intall it on my device, it's size in the memory is around 150 kb. but after a while (could be couple of days of activity), the size is growing unexpectedly, last time I check it got to 664KB.
What could be the reason? is this memory measure is realiable ? what should I check or how sould I solve it in order to keep it small while it's extracted in the memory?
Thanks, ray.
Upvotes: 1
Views: 417
Reputation: 12866
It's usually due to fragmentation of the heap, there are plenty of resources to research upon for regular Java VM's, you will have to check the Dalvik documentation for tools to assist with Android.
Upvotes: 1