Skip to main content



      Home
Home » Archived » Memory Analyzer (MAT) » using "dominatorof" in query
icon5.gif  using "dominatorof" in query [message #486951] Mon, 21 September 2009 05:50 Go to next message
Eclipse UserFriend
Hi everybody,

maybe someone could help me with OQL:

I have a huge amount of objects from the same class (org.my.MyClass). Now I'd like to see the dominator of each object. I use

select OBJECTS dominatorof(s) as dom from org.my.MyClass s

for this. Is it possible to add a restriction in WHERE clause to remove dominators of a certain class? something like

... where dom.class not like "foo.bar.MyOtherClass"?

Any help appreciated!

Re: using "dominatorof" in query [message #494938 is a reply to message #486951] Tue, 03 November 2009 05:36 Go to previous message
Eclipse UserFriend
Hi,

not sure if we could express this with a query. I'll have to give it a try.
Just wanted to suggest an alternative. Did you try to use the "Immediate Dominators" query? You can call it for example from the context menu in the class histogram, on the class you are interested in.
There you can specify dominators of which types should be excluded. This doesn't really remove them, but for dominators matching the pattern the next dominator up in the hirarchy would be shown.

For example if you have
MyObjectA -> HashMap -> HashMap$Entry[] -> HashMap$Entry -> MyObjectB
and if you run the immediate dominators on MyObjectB with the default skip pattern (e.g. java.* ...), then you'll see that MyObjectB is dominated by MyObjectA

If you do this on a set of objects, you get the result aggregated per class.

Let me know if this could be used as a workaround.

Krum
Previous Topic:Heap Dump from Solaris gcore jdk 1.4.2.11
Next Topic:Perm gem space taken by classloader or class definition
Goto Forum:
  


Current Time: Sun Apr 20 16:35:55 EDT 2025

Powered by FUDForum. Page generated in 0.02859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top