Please help me. I analyse my heap dump in VisualVM.
How can I get amount of all Strings with value == "0"? I have the following query:
select count(s) from java.lang.String s where s.toString().equals("0");
But it doesnt work. I want to receive amount of all Strings with "0" value and if it's possible their size in memory.
That's solved my problem
select count(heap.objects('java.lang.String'), "it.toString().equals('0')")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With