|Re: MAT not showing entire HEAP ? [message #8581 is a reply to message #8563]
||Tue, 20 January 2009 12:11
| Andreas Buchen
Registered: July 2009
> 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
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
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
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.
Powered by FUDForum
. Page generated in 5.49519 seconds