OK so I have been at this for days and I still can make sense of the MAT program for eclipse. I can tell I have a memory leak because when running my application I only have about 2% free memory. here is an image from mat http://i.imgur.com/ASjbxOx.png showing the memory leak. if you want to download the dump I posted it here http://www.mediafire.com/?y1ve41ti1ai5dti Any help one this would be great.

Some background on the application: the main screen has several buttons taking you to new activities. The second button brings you to the games start screen. From here pressing start calls penguin activity which creates a new gameview class which will load the bitmaps into a hashmap and use throughout the game to paint on the canvas.

有帮助吗?

解决方案

You should use the "dominator tree" button in order to understand where the issues lie. It open the dominator tree for the entire heap. It will allows you to identify easily the biggest retained chunks of memory.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top