Home » Android » android – How to detect memory leak

android – How to detect memory leak

Posted by: admin June 15, 2020 Leave a comment

Questions:

I faced some issues related to MemoryOutOfBounds exception in android. I found There are two reasons behind this

(1) Thread created are alive and not destroyed anywhere

(2) Memory leak.

We can detect thread information in eclipse. But how to know at which line of my code memory leak occurs when I execute my application. MAT works differently. MAT is static.
Is there any plug-ins or any way to know memory-leak in eclipse?

Thanks
Deepak

How to&Answers:

This might be useful.

What Android tools and methods work best to find memory/resource leaks?

Answer:

You don’t need a memory leak to get an OutOfMemoryError, simply using too much memory in your app will cause it.

Answer:

You can have a look at the following links regarding how to avoid memory-leaks: