Yup. We've been running in that case too many times. Invest in a good tool like Yourkit, use HPROF Heap dumps to find the objects with the sticky connects to JVM root and prepare to spend nights on trying again and again..
I recommend writing automated Unit-Tests for that as well. So that you can call certain activities 100 times and see whether they retain in memory or not. Very helpful for us. Also check basics like background pictures can be encoded as JPG instead of PNG to save some memory... BR On Thu, Jun 17, 2010 at 3:33 PM, Romain Guy <romain...@android.com> wrote: > When you get such an error it's because *your* process is running out > of memory. Other processes have nothing to do with it. You are using > too much memory in your process and blowing past the heap limit (16 MB > or 24 MB depending on the device you're using.) > > On Thu, Jun 17, 2010 at 12:07 AM, Amit <magic.man.a...@gmail.com> wrote: > > Hi > > > > java.lang.OutOfMemoryError: bitmap size exceeds VM budget > > I am getting this message in my log. As I investigated and found out > > while loading contact image this error comes.I checked size of the > > image file and it was normal so came to a conclusion that other > > processes filling up the memory and hence at the time this image is > > being loaded ,VM running low of memory. > > > > My question is that, is there any tool to figure out which process is > > responsible for occupying memory so that we can look into the process > > for the exact reason. > > > > Thanks, > > Amit > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > > > > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en