Bug 76097 - Compilation after performing "Clean..." takes ridiculous amount of time
Summary: Compilation after performing "Clean..." takes ridiculous amount of time
Status: RESOLVED DUPLICATE of bug 44215
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.2.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Matt Chapman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-12 12:27 EDT by John P. A. Verhaeg CLA
Modified: 2004-11-18 04:27 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 John P. A. Verhaeg CLA 2004-10-12 12:27:24 EDT
Our developers have around 300 projects in their workspace, and we have just 
iniiated the use of AspectJ 1.2.0.20041004170512 in our projects.  We're all 
running Eclipse version 3.0 or 3.0.1.  We currently have around 15 projects 
containing weaved-in Aspect code.  After performing a "Project->Clean..." on 
any of these AspectJ projects, a subsequent rebuild takes anywhere from 45 
minutes to over 2 hours.  Whereas before, the folders shown in the build 
progress changed so quickly you could barely read them, now each folder is 
displayed for at least 10-15 seconds, sometimes for a minute or two, and a few 
for 10-15 minutes.  This problem is bringing our productivity to a crawl.
Comment 1 Matt Chapman CLA 2004-10-13 11:22:23 EDT
Additional email correspondence about this:

Me: This could be an eclipse issue - which build of eclipse are you using, and
which platform? And does increasing the heap size help? AspectJ projects can
require quite a bit of memory.

John: We're running both Eclipse 3.0 and 3.0.1, depending upon the developer. 
Everyone is running on a Windows XP platform.  We've already got our heap sizes
set to at least 512MB.  We can try higher values, but it's getting to the point
where it's not very practical to raise the value much higher.

Me: I can't say whether that is enough as I don't know how big your projects
are. AspectJ projects do in general require more memory than Java projects. A
heap of 256MB is enough to develop AJDT itself, but that's only about 10
plugins. Please could you try a larger heap, just to see if that is the problem
- if the build times significantly improve, then it probably is. Please add any
findings to this bug.
Comment 2 Matt Chapman CLA 2004-10-28 06:09:02 EDT
John, have you been able to try this with a larger heap, to see if that improves
the situation? It would be good to know whether this is a case of excessive
memory requirements (which we plan to look at soon), or whether there is a
separate problem here.
Comment 3 Helen Beeken CLA 2004-10-29 07:25:21 EDT
Hi - I'm not sure if this is relevent or not, but just as a note, our Builder 
doesn't actually override the clean method in IncrementalProjectBuilder. It is 
advised that you do override this. It might be worth doing this :-)

Thanks, Helen
Comment 4 Matt Chapman CLA 2004-11-18 04:27:31 EST
In the absence of any further information, I'm going to assume that this is a
memory usage issue, and treat as a duplicate of 44215. If the JVM has an almost
full heap, then excessive amounts of GC will be required, degrading performance. 

*** This bug has been marked as a duplicate of 44215 ***