'How to select certain objects from thread locals of the thread which ows top-N demoninators?
I would like to take advantage of OQL in Eclipse Memory Analyser to solve the following task:
- Select e.g. top-10 objects from denominator tree.
- For each such object resolve thread locals of the thread that owns that denominator (let's assume that denominators are not shared among threads).
- In thread locals locate recursively the objects of class
org.eclipse.jetty.http.HttpField(HTTP response headers) which has_nameequals toX-Frame-Options:
SELECT entry._value FROM INSTANCEOF org.eclipse.jetty.http.HttpField entry WHERE toString(entry._name) = "X-Frame-Options"
- Display denominator object info and the header value:
byte[380437984] @ 0x7be000000 | DENY
Any hint how to do it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


