title: Using MAT in eclipse and resolving memory leaks
body: <p><img src="https://i.stack.imgur.com/QM9s2.jpg" alt="enter image description here">I am using MAT of eclipse to analyze memory usage in my Android project. </p>
  
  <p>I have used   </p>
  
  <pre><code>try {  
              Debug.dumpHprofData("/mnt/sdcard/myapp.hprof");  
              Log.i("","Calle d dumpHprofData");  
           } catch (IOException e) {  
               // TODO Auto-generated catch block  
               e.printStackTrace();  
            }  
  </code></pre>
  
  <p>in my onCreate().. and generating myapp.hprof file. Then converting it into mat.hprof using "hprof-conv myapp.hprof mat.hprof"  </p>
  
  <p>I opened up "mat.hprof" using eclipse and it displays huge leaks.  </p>
  
  <p>I am not usre how to anlyze and resolve thos leaks.  </p>
  
  <p>Eg  :</p>
  
  <pre><code> 7,321 instances of "java.lang.String", loaded by "&lt;system class loader&gt;" occupy 457,648 (23.06%) bytes.   
  
  Keywords  
  java.lang.String  
  </code></pre>
  
  <p>I am unable to open the source file related to it using MAT.  </p>
  
  <p>Please help.  </p>
  
  <p>Thanks<br>
  Sneha</p>