How to find Memory Leak Class/Activity in Android

Viewed 23058

I am New to this Android platfrom. In one application, there is a memory leak. But i couldn't able to find in which actiity or class the memory leak is happening.

I am using MAT to get the infirmation that the memory leak is there or not. But not able to find which activity is leaking.

Please tell me how to find the which activity is leaking.

Thanks.

6 Answers

You can see it in the DDMS.

Simply select your app package name and click update heap the above button.

Now goto Heap Tab click Cause GC.

you will find the listing of objects used.

You can analysis android memory leaks automatically with MMAT,MMAT github page

Related