30 May 2018

OQL queries

From https://github.com/devwebcl/wls_contraption/blob/master/oql/oql-queries.md

How many classes loaded in my app?
(retrieving from a heapdump and queried thru eclipse-mat or visualvm)

select count(heap.classes())

select count(heap.objects('sun.reflect.DelegatingClassLoader'))

select x from cl.ejemplo.foo.bar.Qux x


We use the classes method of heap object and used count built-in to count the result of the same. The output was: 1950

http://blogs.oracle.com/sundararajan/permanent-generation-analysis-with-oql

No comments :

My Blog List

Blog Archive

Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.