string search using OQL

Viewed 15653

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.

4 Answers

select c.attr_name.toString() from a.b.c.MyClass c where c.attr_name.toString().startsWith("GH")

Related