8

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

Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243

3 Answers3

9

This might be useful.

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

Community
  • 1
  • 1
m4n07
  • 2,267
  • 12
  • 50
  • 65
7

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

Romain Guy
  • 97,993
  • 18
  • 219
  • 200
5

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

Sean O'Toole
  • 4,304
  • 6
  • 35
  • 43
Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243