Possible memory leak in IDE Options Colors & Fonts?

I've been playing around with the EditorFactoryListener a bit (see tracker
#5853) and wonder if i've stumbled across a memory leak with the Colors &
Fonts panel in IDE Options.

I created a simple EditorFactoryListener that just prints out the Editor
that gets created/released, like this:


When i open the Colors & Fonts panel in IDE Options, i see (by looking at
the output in the console) that 8 editors are created. But, when i close
IDE Options, only 6 of those 8 editors are released.

If i then repeatedly open and close IDE Options (say 10 times or so), the
memory used according to the usage indicator steadily increases. Clicking
the garbage collector's trash can doesn't cause the level of memory used to
drop down to where it was initially.

Similarly, the Code Style panel in IDE Options creates 3 editors, but none
get released when closing IDE Options.


4 comments
Comment actions Permalink

I think there is more than just a leak in that area... I've been using build
661 for a few hours now since I finally managed to download it. With build
660 my project was chewing up memory in the 40-50 meg range but running the
GC could drop it down to around 24 megs. Since installing build 661, my
project began using around 87 megs. After a few hours of use I am now at 176
megs of memory use according to the monitor in IntelliJ and even running the
garbage collector only gets me down to about 120 megs. my project hasn't
changed THAT significantly in the past few hours. If I exit IntelliJ, my
memory use starts at 23 megs, grows at about 1 MB/sec to 70 megs or so (I'm
not even using the ide... just letting it sit there doing it's thing) and
once I start using it, grows quickly into the 80's range. Within an hour or
so I'm back into the same situation with 170+ megs used up and no recourse
but to restart IntelliJ.


"Chris Bartley" <spam@feynman.org> wrote in message
news:aoms8g$o1t$1@is.intellij.net...

I've been playing around with the EditorFactoryListener a bit (see tracker
#5853) and wonder if i've stumbled across a memory leak with the Colors &
Fonts panel in IDE Options.

>

I created a simple EditorFactoryListener that just prints out the Editor
that gets created/released, like this:

>

 public void editorCreated(final EditorFactoryEvent event)
>    {
>    System.out.println("CREATED: " + event.getEditor());
>    }
> public void editorReleased(final EditorFactoryEvent event)
>    {
>    System.out.println("RELEASED: " + event.getEditor());
>    }
> ]]>

>

When i open the Colors & Fonts panel in IDE Options, i see (by looking at
the output in the console) that 8 editors are created. But, when i close
IDE Options, only 6 of those 8 editors are released.

>

If i then repeatedly open and close IDE Options (say 10 times or so), the
memory used according to the usage indicator steadily increases. Clicking
the garbage collector's trash can doesn't cause the level of memory used

to

drop down to where it was initially.

>

Similarly, the Code Style panel in IDE Options creates 3 editors, but none
get released when closing IDE Options.

>
>


0
Comment actions Permalink

Sorry, i forgot to add that I'm using IDEA 660 on Win2k sp3 with the bundled
JRE.


0
Comment actions Permalink

I see that too. Plus, I find Build 661 rather sluggish in comparison to 65*.

0
Comment actions Permalink

terrible memory consumption increment of 661. After I open about 10 java files and compile them ,the memory increse to 120M and won't decrease all the way. it is of no use to do GC.(my os win2k), is there any setting in idea that can prevent it from increment ?

0

Please sign in to leave a comment.