Bug 10538 - Possible memory leak?
Summary: Possible memory leak?
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-28 17:14 EST by Peter Burka CLA
Modified: 2002-03-13 11:26 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Burka CLA 2002-02-28 17:14:54 EST
I've found that Eclipse's memory footprint tends to grow larger and larger the 
longer I keep it running.

When I start up Eclipse using Hursley's 1.3.0 VM, it has about an 86MB 
footprint.  Today, after it had been running for about 3 days, I had to kill 
the Eclipse process because it had brought my 512MB machine to its knees.  
Eclipse was using over 360MB of RAM, and its virtual memory usage was even 
higher.

I don't really know which component to report this against, as it's not clear 
to me what actions cause the memory bloat.
Comment 1 Philipe Mulet CLA 2002-02-28 17:19:54 EST
I have noticed a bigger memory footprint since 20020214, after having switched 
to team2.0. However, I have no evidence of this causing trouble so far.

I had been running the same jdtcore for a week before, and hadn't noticed any 
such increase of the footprint, so I don't think this would be jdtcore but 
rather some new component.
Comment 2 Peter Burka CLA 2002-02-28 18:30:22 EST
After restarting my session my memory footprint was 86MB.  After about an hour 
of playing around (not much real work got done, mostly searching) the image had 
grown to 152MB.

I'm suspicious that searching might be at least partially responsible for the 
bloat.

I will leave it running overnight now to see if it grows while idle (hopefully 
not!)
Comment 3 Peter Burka CLA 2002-02-28 18:41:34 EST
I'm really starting to think that Search is to blame.  I did a search for 
references to setText().  This caused to VM's footprint to increase by about 
30MB!

Even if I select 'Remve All Searches' after each search, searching for setText
() causes about 30MB of growth each time I do it.

I need to exit and restart Eclipse to reclaim that memory.
Comment 4 Philipe Mulet CLA 2002-03-12 09:05:19 EST
This is because the Search is populating the JavaModel cache, and consumes some 
memory, which isn't freed until the cache is emptied. We are releasing 
significant changes in this area (search no longer populates the model) in next 
integration build 20020312.

Marking this defect as fixed, please reopen if symptoms occur again with 
20020312 or better.