|
|
Re: Exploring all GC roots in dump [message #4342 is a reply to message #4272] |
Wed, 03 September 2008 19:17 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Taras Tielkes![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=taras.tielkes%40gmail.com) Messages: 38 Registered: July 2009 |
Member |
|
|
Hi Andreas,
Thanks for the query, and indeed, I forgot that an object can belong to
multiple GC root categories.
YourKit proviews a view where I can explose the roots by group, I assume
in their UI an item would be shown in multiple groups, but I'm not sure.
I've used that UI sometimes to really explore things starting from some
specific roots.
-tt
Andreas Buchen wrote:
>> Is there an easy way in the MA tool to get a (grouped) list of all GC
>> roots in a snapshot?
>
> A little bit of ugly OQL will give you a list of all GC roots.
>
> SELECT OBJECTS $snapshot.getGCRoots() FROM OBJECTS 0x0
>
>> Grouped by root type (native, local, monitor, etc)?
>
> But not grouped... (an object can be GC root for multiple reasons, maybe
> because it is currently on the call stack of a running thread and it is
> a system class). Sorry.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03620 seconds