Bug 23062 - memory use in Eclipse for AspectJ
Summary: memory use in Eclipse for AspectJ
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andrew Clement CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-30 23:13 EDT by Rajesh Honnawarkar CLA
Modified: 2003-01-29 14:47 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rajesh Honnawarkar CLA 2002-08-30 23:13:48 EDT
I have increased the amount of memory used by Eclipse by specifying -vmargs -
Xmx384M in the startup.

This does help me compile my big project which is a Web Application. However if 
I keep recompiling the Aspect project, the memory used by Eclipse keeps growing 
to where eventually it  says, its out of Memory.

In my case, I have 512M on my laptop and I have assigned 384M to Eclipse.
Any solutions?
Comment 1 Andrew Clement CLA 2002-09-05 12:20:44 EDT
I have just committed a fix to CVS for a serious memory leak.  It does affect 
continuous recompiling which appears to be the issue here, basically the 
outline view kept asking aspectj for new versions of the view for a file, but 
it never told aspectj that old views were finished with and could be deleted - 
hence after multiple compiles, the memory runs out.  This fix will be rolled 
into 0.5.2 which will be available relatively soon - if you are happy to pickup 
CVS updates and build them yourself it is available right now.  I don't know if 
this is the only memory leak, but it is a serious one.
Comment 2 Mik Kersten CLA 2002-09-12 11:42:51 EDT
This should be fixed in 0.5.2.
Comment 3 Adrian Colyer CLA 2002-09-19 07:37:53 EDT
Fixed in 0.5.2 release as per previous comments.
Comment 4 Rajesh Honnawarkar CLA 2002-09-20 15:07:12 EDT
Seems to happen still. I downloaded the 0.5.2 version of plugin. Compiled once. 
memory used by Eclipse increased to approx 420M( My startup settings were for 
384M). after the first compile, I hit Build again..and then at a certain point 
in the Build, I got the Out of memory error.

Now I cant get back into Eclipse ( have filed a bug request - 23932)
Comment 5 Andrew Clement CLA 2002-10-10 11:36:30 EDT
Whilst working on another feature I noticed that in some cases we might be 
using the wrong kind of marker against some resources - some marker types 
persist and some don't.  We might be leaking markers, in particular the markers 
we attach to resources when the outline view builds 'goto markers'.
Comment 6 Adrian Colyer CLA 2003-01-29 14:47:01 EST
We believe this is now fixed - we found a serious leak of Image resources caused 
by updating the outline views (e.g. after compile) and when displaying the build 
config editor on large projects. The fix is in the 0.6.0 stream.