Thread dump export of all entries of e.g. java.util.Hashtable$Entry

Questions about YourKit Java Profiler
Locked
snoerenberg
Posts: 4
Joined: Thu Aug 03, 2023 6:28 am

Thread dump export of all entries of e.g. java.util.Hashtable$Entry

Post by snoerenberg »

Hi,

we are currently facing a problem where we have 2 instances of a cache inside one JVM instance.
One is growing over time, one remains stable.

Is it possible to extract all the entries or keys from both caches using Yourkit?
This would give us a hint where the entries of the larger one are coming from. Of course only happens on production after some weeks runtime.

In the UI I can get only 500 entries displayed and exported but the expected amount is 60 million entries for the large cache.

Image

Image

Thanks
Stephan
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Thread dump export of all entries of e.g. java.util.Hashtable$Entry

Post by Anton Katilin »

Hi Stephan,

You can increase the limit as described here:
viewtopic.php?p=61294#p61294

Best regards,
Anton
snoerenberg
Posts: 4
Joined: Thu Aug 03, 2023 6:28 am

Re: Thread dump export of all entries of e.g. java.util.Hashtable$Entry

Post by snoerenberg »

Hi,

I can test it but I assume the UI will not be able to handle 60 million records.

Stephan
snoerenberg
Posts: 4
Joined: Thu Aug 03, 2023 6:28 am

Re: Thread dump export of all entries of e.g. java.util.Hashtable$Entry

Post by snoerenberg »

Hi,

the UI is not able to render it, I could only click on "object explorer" and than Yourkit freezes.

Stephan
Vladimir Kondratyev
Posts: 1660
Joined: Tue Aug 10, 2004 7:52 pm

Re: Thread dump export of all entries of e.g. java.util.Hashtable$Entry

Post by Vladimir Kondratyev »

the UI is not able to render it
Yes, UI is not able to render it, and I belive humans are not able to analyze it. There should be a sort of automatic analysis.
snoerenberg
Posts: 4
Joined: Thu Aug 03, 2023 6:28 am

Re: Thread dump export of all entries of e.g. java.util.Hashtable$Entry

Post by snoerenberg »

There should be a possibility to export to CSV like in Eclipse MAT.
Afterwards this can be analyzed by awk/sort/... and finally Excel with some Pivot tables.

Thanks
Stephan
Locked