I'm currently working on a custom plugin for myself and my co-workers. I have a dependent language defined, tab panel setup to view of files of the specified type, and a configuration service (at the project) level which identifies all of the necessary files. After the tab panel populates, my memory usage goes from 64M to 254M. I'm thinking I have some sort of memory issue going on in my code. What sort of tips for managing memory could you share related directly to how IDEA processes data?
Some things I'm doing in my panel:
list of matching files
top level elements
There are at least 3 dozen directories with five files each and each file could have any number of top level elements.
If I'm not explaining myself very well, please let me know.
One other thing to note, is the memory usage drops back down to around 64M after a little while. So, I'm sure objects are getting released, it's just a matter of when and can I control it better.