|
Re: MAT not showing entire HEAP ? [message #8581 is a reply to message #8563] |
Tue, 20 January 2009 12:11 |
Andreas Buchen Messages: 123 Registered: July 2009 |
Senior Member |
|
|
> I have this strange behaviour : when jmap creates a 1.7go heap dump from
> my production server, MAT only shows :
> Size: 349,7 MB Classes: 27k Objects: 6,6m Class Loader: 11,3k in
Hi Anthony,
when a heap dump is written, MAT removes objects which are not reachable
anymore. The reason is this: depending on the algorithm, the garbage
collector actually leaves some garbage behind. For example, some objects
are converted into pseudo byte arrays in order to avoid moving and
re-addressing objects.
However, this "waste" is usually only about 3 to 4 per cent of the heap.
You can print a class histogram of the removed objects following these
instructions: https://bugs.eclipse.org/bugs/show_bug.cgi?id=245410#c1
There could possible more reasons: sometimes the VM does not write a
complete heap dump. And, of course, it could also be a bug. And then we
would like to fix the problem. So if you run into many objects being
removed, it would be great to get my hands on the dump.
Let me know if you have further questions.
Kind regards,
Andreas.
|
|
|
Powered by
FUDForum. Page generated in 0.03325 seconds