I've got a heap dump from the application and found out that there's a huge number of ArrayLists with only 1 object in it. I know how to get the list of such arraylists and also show the class of the ...

I am using the below Java 6 code to query a Gemfire 6.5 cache.
My problem is I am trying to filter my results with a WHERE using a method call from the objects in the regionbut for some reason it is ...

Please help me. I analyse my heap dump in VisualVM.
How can I get amount of all Strings with value == "0"?
I have that query:
select count(s) from java.lang.String s where s.toString().equals("0");
...

how do I find size of object in heap including all the objects it references from its fields?
In the Classes view under heap dump, the size only indicates the "shallow" size of object. I would like ...

I would like to list the instances according to what space they are in: Eden, Survivor, Tenured. I'm really interested in Eden, but an answer for any space probably will answer for the others.
Note, ...

I need an OQL query to answer the following question:
The number of instances of my.class.A that is transitively referred to an instance of my.class.B.
I found millions of instances of my.class.A in ...

I'm having trouble with joining two OQL statements. Since the sub select syntax in OQL is a little quirky could someone help me out?
Select 1
SELECT thread.name.toString(), thread.@retainedHeapSize
...

I am attempting to return a single object via castor query that has the earliest date.
This is the sort of thing I have been trying:
SELECT p FROM model.objects.Product p LIMIT $1 WHERE p.status=$2 ...

I am using VisualVM to analyze a core dump. I suspect some XML objects to be causing the leak but there are way too many String objects to go through one by one.
Can I use OQL to search String that ...

I'm trying to find a way to list which objects a run-time object is referring to. I know there is a way to enquire the jvm using oql but what I'd like to do is to query it from inside a program. Is ...

I have a database with an Oracle Text index and I would like to use an access layer with the Object Query Language (OQL).
I would like to use statements as
SELECT id FROM table WHERE CONTAINS(column, ...

I've accidentally ran a script with an infinite loop in GroovyConsole. :-\
For the sake of Murphy's Law, I haven't save my work during 3 or 4 hours. So, before killing the GroovyConsole Process, I've ...

Does anyone know how to retrieve the hierarchical model of a account based on it's id?
I tried using this query but all i got is the first set of child nodes.
select a.Name,a.parentId,a.ownerid,a.id ...

I'm trying to use jhat/OQL to trace a memory leak in our Tomcat container. The question I want to ask is:
"Show me all the instances (and sub-instances) of foo.bar.Cacheable class that are reachable ...

I'm running the java cocoon 2 and castor oql. I'm trying to filter my oql query by today's date, but I can't seem to figure out (or find in google) the syntax of the date. The database is mySql, but ...