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 305153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:20:49+00:00 2026-05-12T07:20:49+00:00

I was curious about the runhprof output? I am mainly concerned about the memory

  • 0

I was curious about the runhprof output? I am mainly concerned about the memory section. It looks like there are multiple entries of the same class. Why would that be.

Is there a way to get hprof to print how much memory a particular class(the instances of that class) take up in memory. One value for each class.

Also, what tools do you use beside ‘hat’ to analyze the output?

I ran the java command with jvm arg:

-Xrunhprof:heap=sites,depth=4,format=a,file=prof/hprof_dump.txt

Here is brief snippet of the output. Some classes are listed multiple times in the output.

SITES BEGIN (ordered by live bytes) Tue Jul 28 19:33:41 2009
          percent          live          alloc'ed  stack class
 rank   self  accum     bytes objs     bytes  objs trace name
    1 29.75% 29.75%    700080 43755 576000016 36000001 307483 java.lang.Double
      2  7.13% 36.88%    167840 5245    370432 11576 300993 clojure.lang.PersistentHashMap$LeafNode
        3  2.09% 38.98%     49296 2054     60048  2502 301295 clojure.lang.Symbol
        4  2.09% 41.07%     49200    3     49200     3 301071 char[]
        5  1.33% 42.40%     31344 1306     68088  2837 300998 clojure.lang.PersistentHashMap$BitmapIndexedNode
        6  1.10% 43.50%     25800  645     25800   645 301050 clojure.lang.Var
        7  1.05% 44.54%     24624    3     24624     3 301069 byte[]
        8  0.86% 45.40%     20184  841     49608  2067 301003 clojure.lang.PersistentHashMap$INode[]
        9  0.78% 46.18%     18304  572     58720  1835 301308 clojure.lang.PersistentList
       10  0.75% 46.93%     17568  549     17568   549 308832 java.lang.String[]
       11  0.70% 47.62%     16416    2     16416     2 301036 byte[]
  • 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-05-12T07:20:49+00:00Added an answer on May 12, 2026 at 7:20 am

    Eclipse Memory Analyzer is excellent. Loads the dump file up very very quickly, produces lots of nice reports about the heapdump, lets you query the dump for objects/classes using a SQL-like language. Love it.

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

Sidebar

Related Questions

No related questions found

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.