[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Re: JavaModelCache and how to shrink it

"Gary Karasiuk" <karasiuk@xxxxxxxxxx> wrote in message 
news:h7jqd8$5c2$1@xxxxxxxxxxxxxxxxxxxx
>I am looking at two different heap dumps, for the same small scenario. The 
>first one is based on Eclipse 3.2.2 and the second is based on 3.4.2.
>
> The live heap is much larger in the 3.4.2 version. I noticed there is an 
> object called JavaModelCache and it is holding on to 64 MB. In 3.2.2 this 
> object is holding onto less than 1 MB.
>
> 1) Any ideas why this has grown so much between 3.2.2 and 3.42?
> 2) Is there anything that I can do to force the cache to release some of 
> this memory?

The inner workings of the Java Model Cache changed significantly in that 
timespan, because Eclipse was having trouble dealing with large jar files. 
The cache was made larger, but its cacheing algorithms were also changed. 
If you search Bugzilla you'll probably find some useful details.

What is the nature of the problem it is causing for you?

Also, are you sure you are comparing apples to apples?  E.g., same JRE, same 
source code and libraries, same compiler settings?