Disposer Logs

Answered

Hi Team, I'm asking this in the context of a ToolWindow plugin.  I'm looking for a way to check the allocation and dispose traces. 

The documentation advises to set “idea.disposer.debug” to "on".  How can I set this in IDE such that I can check out the disposer logs?

(I tried System.setProperty("idea.disposer.debug", "on"). I didn't see any such traces)

 

0
4 comments

Hi,

If you try to see it in the sandbox instance, then it should work out of the box (it is enabled when the internal mode is enabled: https://plugins.jetbrains.com/docs/intellij/enabling-internal.html).

If not, please try to add idea.disposer.debug=on in Help | Edit Custom Properties…

0

I enabled both internal and disposer debug properties in idea.properties (Help | EditCustom Properties). I'm not seeing logs specific to allocation and disposal in idea.txt and open-telementry-meters.2024… files. I could see same set of logs before and after enabling the mentioned properties.

In general, I'm curious what would the disposer logs contain? Would we be able to see the allocation and disposal traces when such props are set? I'm intending to see if there are any warnings to dispose components such as “<<something>> is not disposed”…

 

0

This is logged in idea.log and only when an actual leak happens. Maybe in your case leaks do not happen and you don't see any logged information (search for the string: “Memory leak detected”).

0

Please sign in to leave a comment.