visualvmheap-dump

Filter value in java visualvm


I'm trying to filter the String value, but it's not supported in VisualVM. How can I do that?

enter image description here


Solution

  • You can use OQL to filter the strings. For example the following query will show strings containing 'AWT'

    select s from java.lang.String s where s.toString().contains("AWT")
    

    More information about OQL can found in this document.