java – Eclipse MAT report is only listing top 10 objects

I’m analyzing my heap using MAT and looking at a few helpful reports. For example this report lists the possible memory wastes in empty collections.

MAT version: 1.11.0

Here as you can see from the screenshot, each item in the report is only listing first 10 of all objects.

enter image description here

If I click into the “First 10 of … objects”, expecting to see more objects, that’s actually not the case. All I can see is only those 10 objects. I don’t see a way to show more objects like a “Show the next 10 objects” button. See screenshot below.

enter image description here

I’m looking for a way to see all the 365 objects. Is there such a button somewhere? Or I have to write OQL for that? I’m really new to OQL, could someone give me an example? Appreciate any help!

Note: The ThreadLocalMap is only for illustration and a better screenshot, I’m actually looking for where the empty HashMap are from.

Read more here: Source link