Eclipse MAT - Remove Self-Referential Inbounds

I'm trying to track down a memory leak, and I can't figure out how to find what's retaining the object. Many of the object's members hold references to it, so the inbounds view is clogged up by those items that will get freed with the object. Doing "shortest path to GC root" zooms out to the massive top level of the classloader itself, making me dig all the way down to find the object in question. Does anyone know how to filter the inbounds of an object to just those that wouldn't get disposed with said object?
3 Replies
JavaBot
JavaBot2w ago
This post has been reserved for your question.
Hey @Haiku! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
dan1st
dan1st2w ago
You might want to check the leak suspects report you might be able to filter per class and immediate dominators may be useful as well: https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.mat.ui.help%2Freference%2Finspections%2Fimmediate_dominators.html that should mostly do what you want alternatively you could try writing custom queries: https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.mat.ui.help%2Freference%2Fselectingqueries.html&cp%3D50_4_4
JavaBot
JavaBot2w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server