Duplicate String and duplicate objects discrepancy

Questions about YourKit Java Profiler
Locked
ron.amir
Posts: 7
Joined: Mon Apr 24, 2023 9:29 am

Duplicate String and duplicate objects discrepancy

Post by ron.amir »

In a memory inspection I've created for a heap dump I can see that there are 36M duplicate Objects, of them about 30M are strings. However, The Number of duplicate strings in the duplicate strings pane is only 3.6M. What can be the cause for that?
p.s. about 26 of the 30M are empty Strings.
Vladimir Kondratyev
Posts: 1660
Joined: Tue Aug 10, 2004 7:52 pm

Re: Duplicate String and duplicate objects discrepancy

Post by Vladimir Kondratyev »

Which exact version of the profiler (including build number) are you using?
ron.amir
Posts: 7
Joined: Mon Apr 24, 2023 9:29 am

Re: Duplicate String and duplicate objects discrepancy

Post by ron.amir »

2022.9-b183
Vladimir Kondratyev
Posts: 1660
Joined: Tue Aug 10, 2004 7:52 pm

Re: Duplicate String and duplicate objects discrepancy

Post by Vladimir Kondratyev »

We kindly request that you provide us with a memory snapshot from the latest version 2023.9 of the software that demonstrates the problem you are encountering.

Please note that we do not investigate reports from end-of-life versions of our software, as the issue you're experiencing might already have been resolved in our more recent updates. A memory snapshot from version 2023.9 will enable us to thoroughly investigate and address your concern.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
arnoldmatt
Posts: 3
Joined: Fri May 24, 2024 2:04 pm

Re: Duplicate String and duplicate objects discrepancy

Post by arnoldmatt »

Yeah, that empty string count is a clue. YourKit might be collapsing identical empty strings into a single entry. Have you tried filtering the "Duplicate Strings" pane to just show non-empty strings?
Locked