Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 245410

Summary: Print Histogram of Unreachable Objects
Product: [Tools] MAT Reporter: Andreas Buchen <andreas.buchen>
Component: CoreAssignee: Andreas Buchen <andreas.buchen>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jochenstiepel
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Andreas Buchen CLA 2008-08-27 12:15:47 EDT
During the index creation, the Memory Analyzer removes unreachable objects because the various garbage collector algorithms tend to leave some garbage behind (if the object is too small, moving and re-assigning addresses is to expensive). For debugging purposes, the Memory Analyzer should (optionally) print out a histogram of the unreachable objects.
Comment 1 Andreas Buchen CLA 2008-08-29 12:19:19 EDT
Committed initial version with CL 122.

~\mat> echo org.eclipse.mat.parser/debug=true >.options
~\mat> MemoryAnalyzer -debug [-application org.eclipse.mat.api.parse <heap dump>]

Comment 2 Andreas Buchen CLA 2008-10-24 09:49:41 EDT
closing bug. Feature is available for download.
Comment 3 Jochen Stiepel CLA 2009-01-27 05:43:14 EST
It would be helpfull to find this information, also in the wiki of MAT.

Like:

To show debug output of MAT:
1. Create or append to the file ".options" in the eclipse main directory the line:

org.eclipse.mat.parser/debug=true

2. Start eclipse with the -debug option. This can be done by appending -debug to the eclipse.ini file in the same directory as the .options file.
Comment 4 Jochen Stiepel CLA 2009-01-27 05:56:25 EST
The bug 262531 also covers this feature.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=262531
Comment 5 Andreas Buchen CLA 2009-01-27 06:00:54 EST
@Jochen: added to FAQ, thx.
I will comment on the other bugzilla.