I'm using VisualVM and JProfiler to try and find a memory leak culprit.
There's a PoolThreadCache class that has the biggest number of instances.
Is there a way to see the call trace of the object usage? Something like this:
com.my.CustomClass->a.b.c.AClass->d.e.f.BClass->g.h.i.PoolThreadCache
Can I use OQL for this or maybe some outgoing/incoming reference functionality?
Basically I want to find out who is com.my.CustomClass .
I assume that by
the call trace of the object usage
you mean the stack traces where objects were allocated.
In JProfiler, you have to start allocation recording, then the "Allocations" view of the heap walker will show you a cumulated call tree or a list of hotspots with backtraces where the objects in the current object were allocated.