For one of our internal plugins, some users report severe memory
problems, like 400MB memory usage and >1min lockups. I got some memory
dumps and it looks like things are normal.
The plugin provides CompletionData, ReferenceProvider, and inspections
with a few quickfixes. These are all used only for XML files.
First of all, the user said his memory meter showed 400MB+ usage, but YK
shows retained size as 112MB. What does this mean?
Second, my plugin classes are less than 1% shallow and retained. So, it
looks like maybe my plugin is messing with some caches, or causing some
other classes to retain references. Are there any pitfalls for memory
leaks that I might not be aware of?
com.intellij.psi holds 15MB shallow size, 64MB retained size.
com.intellij.openapi holds 7MB, 36MB (mostly from vfs package). Is this
Unfortunately I won't submit this memory snapshot because it contains
confidential information in the form of classnames. I don't know if it's
my plugin's problem or IDEA bug. I hope someone can help me work out the