I am using VisualVM to analyze a core dump. I suspect some XML objects to be causing the leak but there are way too many String objects to go through one by one.
Can I use OQL to search String that begin with 'GH' ?
thanks for any help.
under JDK 1.8.20 a more simple variant works:
select s from java.lang.String s where s.toString().startsWith("GH")
Try this:
select {instance: s, content: s.toString()} from java.lang.String s where s.count>2 && s.toString().substring(0,2)=="GH"
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