开发者

Android VM heap - heapsize. Is this normal?

开发者 https://www.devze.com 2023-04-06 09:51 出处:网络
IDHeap SizeAllocatedFree% Used#Objects 17.383 MB3.551 MB3.832 MB48.10%65,709 That\'s what I see in DDMS. I have no sense of what\'s reasonable, but seems like a lot to me. I guess开发者_运维技巧 % u
ID       Heap Size     Allocated       Free      % Used  #Objects
1        7.383 MB      3.551 MB   3.832 MB      48.10%   65,709

That's what I see in DDMS. I have no sense of what's reasonable, but seems like a lot to me. I guess开发者_运维技巧 % used refers to percentage of heap size that allocated is using?


There doesn't seem to be anything strange with those values. The exact heap limit differs depending on screen size, but I think the minimum is 24 MB. I'd say the percentage refers to current heap limit. Note that heap limit will not be larger than it has to be. It might be 14 MB now but then it will grow if needed(to the maximum limit just mentioned).

This video explains a lot of good stuff about memory: http://developer.android.com/videos/index.html#v=_CruQY55HOk

0

精彩评论

暂无评论...
验证码 换一张
取 消