How to fix memory leaks in Android?

deepak - Mon Feb 13 2012 22:48:00 GMT-0500 (EST)

Some useful link 1

Some useful link 1

deepak - Mon Feb 13 2012 22:53:49 GMT-0500 (EST)

Another good link

Another good link

deepak - Mon Feb 13 2012 23:12:28 GMT-0500 (EST)

Tools - Traceview

Tools - Traceview

deepak - Mon Feb 13 2012 23:17:17 GMT-0500 (EST)

Good article on performance handling

Good article on performance handling

deepak - Mon Feb 13 2012 23:35:32 GMT-0500 (EST)

How to get the heap dump?

How to get the heap dump?

deepak - Mon Feb 13 2012 23:57:33 GMT-0500 (EST)

How to get memory used by each objects of your application?


1) Step 1 - Start the application in emulator

2) Open the DDMS perspective

3) Select the application package from the list of process

4) Click on Update Heap button

5) Convert the hprof file into MAT readable form
       ./hprof-conv  filename_generated newfilename.hprof

6) Open the Memory Analyzer tool perspective in eclpse

7) Open the heap file

8) Click histogram to see the whole list of objects

9) filter based on your app package

10) export it to html

deepak - Thu Feb 16 2012 20:44:07 GMT-0500 (EST)

Download Memory Analyzer Tool

Download Memory Analyzer Tool

deepak - Thu Feb 16 2012 20:44:39 GMT-0500 (EST)

Add the below link to eclipse for download


http://download.eclipse.org/mat/1.1/update-site/