Iroid wrote: > Hello All, > I am facing an Out Of Memory Exception while playing with the > application for sometime. > I looked in to HeapDump using MAT, and also monitored the heap through > DDMS. But HeapDump looks good to me and DDMS heap size is well in > limit. Still I am getting this Exception. > This morning when it crashed the DDMS heap details are: > Heap size -> 5.945 MB > allocated -> 4.463 MB > Free -> 1.482 MB > %Used -> 75.07% > > > Could anyone help me to resolve this? as my timeslines are very > closure and this is a show stopper for me.
Android's garbage collector is not a compacting garbage collector. If you are allocating large things, there may not be a large enough contiguous block of heap space to accommodate your request. Hence, if you are using large blocks of heap space, you may wish to manage your own object pool for those, recycling them yourself. Whether or not this is the source of your specific difficulty, of course, is impossible to tell from here. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 8-12 February 2010: http://bignerdranch.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

