Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7959719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:37:02+00:00 2026-06-04T04:37:02+00:00

I am using MAT of eclipse to analyze memory usage in my Android project.

  • 0

enter image description hereI am using MAT of eclipse to analyze memory usage in my Android project.

I have used

try {  
            Debug.dumpHprofData("/mnt/sdcard/myapp.hprof");  
            Log.i("","Calle d dumpHprofData");  
         } catch (IOException e) {  
             // TODO Auto-generated catch block  
             e.printStackTrace();  
          }  

in my onCreate().. and generating myapp.hprof file. Then converting it into mat.hprof using “hprof-conv myapp.hprof mat.hprof”

I opened up “mat.hprof” using eclipse and it displays huge leaks.

I am not usre how to anlyze and resolve thos leaks.

Eg :

 7,321 instances of "java.lang.String", loaded by "<system class loader>" occupy 457,648 (23.06%) bytes.   

Keywords  
java.lang.String  

I am unable to open the source file related to it using MAT.

Please help.

Thanks
Sneha

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:37:03+00:00Added an answer on June 4, 2026 at 4:37 am

    Once you convert the hprof file… Try opening the file from MAT tool … File -> Open heap Dump -> browse and select your file.

    Now click histogram view and enter the name of your activity at the top. You will be able to see shallow heap and retained heap.

    Object should be 1. If it is more than 1, check the live refereces.

    Right click your class name -> select Path to GC roots -> exclude weak references.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Eclipse's Memory Analyzer to analyze a heap dump for my app, since
I am using Eclipse Helios 3.6.2. I use it to do Android development using
Continue solving this problem , i've found couple of 'org.hibernate.impl.SessionFactoryImpl' memory leaks using MAT
The standard way to profile an Android application in Eclipse is using the plugin
My second book for Android programming Hello, Android by Ed Burnette. I'm using eclipse.
I am testing my application using MAT tool and find that there is memory
Is there a way to stream video with opencv faster? i'm using Mat img;
First of all: I'm at Scala 2.8 I have a slight issue while using
Using C# for ASP.NET and MOSS development, we often have to embed JavaScript into
When i read a grayscaled image using for example in Opencv 2.3: Mat src

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.