How to detect memory leak

  • Replies:2
Vinod Kumar
  • Forum posts: 3

Feb 11, 2016, 1:56:24 PM via Website

Hi all, How's you?

Actually, 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 .

Reply
David Smith
  • Forum posts: 32

Feb 17, 2016, 2:00:55 PM via Website

Hi,

Memory leaks in Java can be detected through the analysis of heap dumps.You can create an HPROF heap dump.

Hope it will help you.

Reply
Vinod Kumar
  • Forum posts: 3

Feb 18, 2016, 10:22:37 AM via Website

Hi David Smith,

Ok, I will try it And thank you.

Reply