Search This Blog

Thursday, January 14, 2016

Analyze the heap captured from jvisualvm

Get a heap dump and run the oql console.
you will find some sample queries on the right hand side.

Create your own custom query like this

select s from java.lang.String s where s.toString().startsWith("userName")
if your code base has this string object it will come in the query results and 
from there you can find the references of the objects in the object tree.

No comments:

Post a Comment