On Sun, Jan 15, 2012 at 11:06 AM, New Developer <[email protected]> wrote: > Is there a resource or link that helps you read what is going on with your > app > I'm plagued by an out of memory error and I have no idea why > > Type Count Total Size Smallest > Largest Median > free 929 927.031 KB 16 B > 554.344 KB 96 B > data object 33,460 1.220 MB 16 B > 1,106 B 32 B > class object 2,703 782.062 KB 168 B > 38.180 KB 168 B > 1-byte array (byte[], boolean[]) 703 8.212 MB 24 B > 2.039 MB 264 B > 2-byte array (short[], char[]) 10,165 653.930 KB 24 B > 28.023 KB 48 B > 4-byte array (object[], int[], float[]) 5,123 327.000 KB 24 B > 16.023 KB 40 B > 8-byte array (long[], double[]) 16 5.922 KB 24 B > 4.000 KB 128 B > non-Java object 129 5.930 KB 24 B > 464 B 40 B > > > How can I trace this to an actual variable
Dump the heap and examine it using the Eclipse MAT plugin: http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html > My main concerns are the 1-byte array esp. the 2.039 MB > I'm sure it is an Image or Bitmap I just don't know which one I strongly encourage you to dump the heap in Honeycomb or Ice Cream Sandwich then, as they do a much better job than do earlier versions of Android of reporting bitmap memory. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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

