1

As you see from the picture, I've dumped a binary file from a java process and use VisualVM to analyze it. And I believe there is something wrong with a key called "rn64832", but I can't filter the ConcurrentHashMap with the problem key and there're too many entries here to do it manually.

Anyone knows how to deal with this situation? Or any solution to check the value on runtime?

enter image description here

Jiayi Liao
  • 999
  • 4
  • 15
  • Have you tried [OQL queries](https://htmlpreview.github.io/?https://raw.githubusercontent.com/visualvm/visualvm.java.net.backup/master/www/oqlhelp.html)? – apangin Jul 09 '19 at 20:32
  • @apangin Yeah. That's exactly what I need. I didn't know it until you remind me. Thanks! – Jiayi Liao Jul 11 '19 at 02:48

1 Answers1

2

Use the following OQL to find the ConcurrentHashMap$Node instance with key field equals to "rn64832"

select node from java.util.concurrent.ConcurrentHashMap$Node node where node.key.toString() == "rn64832"
Tomas Hurka
  • 6,723
  • 29
  • 38