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.
Duplicate String and duplicate objects discrepancy
-
- Posts: 7
- Joined: Mon Apr 24, 2023 9:29 am
-
- Posts: 1660
- Joined: Tue Aug 10, 2004 7:52 pm
Re: Duplicate String and duplicate objects discrepancy
Which exact version of the profiler (including build number) are you using?
-
- Posts: 7
- Joined: Mon Apr 24, 2023 9:29 am
-
- Posts: 1660
- Joined: Tue Aug 10, 2004 7:52 pm
Re: Duplicate String and duplicate objects discrepancy
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!"
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!"
-
- Posts: 3
- Joined: Fri May 24, 2024 2:04 pm
Re: Duplicate String and duplicate objects discrepancy
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?