Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » What does Ref. Object mean in Common Path to the Accumulation Point?
What does Ref. Object mean in Common Path to the Accumulation Point? [message #677684] Thu, 09 June 2011 06:57 Go to next message
mike  is currently offline mike Friend
Messages: 2
Registered: June 2011
Junior Member

When navigating through a leak report. After clicking on a Problem Suspect, a page is displayed with a Description, followed by a table of the Common Path to the Accumulation point.

This table has headers: Class Name, Ref. Object, Shallow Heap, Ref. Shallow Heap, Retained Heap.


What does Ref. Object refer too?

In analysis of a heap dump, I see Ref. Object indicates 9999 for an Object Array; however, the object Array has over 198578 elements inside. So what is Object Ref referring too?

Thanks


[Updated on: Thu, 09 June 2011 06:57]

Report message to a moderator

Re: What does Ref. Object mean in Common Path to the Accumulation Point? [message #677704 is a reply to message #677684] Thu, 09 June 2011 08:12 Go to previous messageGo to next message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 161
Registered: July 2009
Senior Member
The analysis found a group of objects of the same class (say MyClass), which taken together occupy a big portion of the memory.

In such case MAT calculates one (the shortest) path to each of these MyClass objects and tries to group them to see if there is some common reference chain which keeps the objects.

"Ref. Objects" stands for referenced objects and should mean "the number of MyClass objects referenced through this concrete path".

In case the MyClass objects are a very high number, only 10000 of them will be randomly selected for the paths calculation (in order to save time and memory).

So in your case the explanation should be something like:
there are many objects of class MyClass which taken together retain a lot of memory. 10000 of these objects were randomly selected, and 9999 of the sortest paths to them have a common beginning.

I hope this helps.
BTW, from the question I see that the reports should do better work in explaining themselves. Do you have any idea what could be improved in the naming, explanation so that it becomes easier to understand?
Re: What does Ref. Object mean in Common Path to the Accumulation Point? [message #677708 is a reply to message #677704] Thu, 09 June 2011 08:20 Go to previous messageGo to next message
mike  is currently offline mike Friend
Messages: 2
Registered: June 2011
Junior Member
Thank you for such a detailed and well formed response!

Perhaps Ref Objects should have included a '+', becoming Ref Objects 1000+

I think these kind of questions should go in the Memory analyzer usage guide.

Perhaps a section needs to be included explaining the layout of pages, what headings mean and how they apply to analysis.

Prety much what your answer above has done!

Many thanks

[Updated on: Thu, 09 June 2011 08:22]

Report message to a moderator

Re: What does Ref. Object mean in Common Path to the Accumulation Point? [message #677715 is a reply to message #677708] Thu, 09 June 2011 08:26 Go to previous message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 161
Registered: July 2009
Senior Member
Thanks for the feadback. The documentation needs indeed some reworking. I'd keep these suggestions in mind.
Previous Topic:can't view objects in remainder
Next Topic:Couldn't view memory analyzer perspective in Helios..
Goto Forum:
  


Current Time: Sun Sep 23 22:32:22 GMT 2018

Powered by FUDForum. Page generated in 0.01900 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top