Bug 58784 - Workspace rebuilt takes *endless*
Summary: Workspace rebuilt takes *endless*
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2004-04-16 04:16 EDT by Leopold Welsch CLA
Modified: 2004-05-13 11:30 EDT (History)
0 users

See Also:


Attachments
Exclusion List (239.96 KB, image/jpeg)
2004-05-13 08:42 EDT, Leopold Welsch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leopold Welsch CLA 2004-04-16 04:16:48 EDT
When I launch Eclipse 3.0.0M8 the start of my default project takes about 25
minutes. Same is true when I wanna change the Classpath resp. make a CVS-update
of the whole project.

I have installed Java 1.4.2_04 for Eclipse and for the project 1.3.1_06. Yeah,
the used project is little bit large (approx 20.000 separted files in 3.500 dirs
with used approx. 2500 classes - historical splitted - cannot do much against
history), nevertheless I don't see why it takes *that* long. 

My PC is Pentium III, 650 MHZ with 650MB physical memory. For the startup is use
'-vmargs -Xms200M -Xmx512M'. 

So, is it problem of the project or why does Eclipse take *THAT* long? How to
figure out?
Comment 1 Kent Johnson CLA 2004-04-26 11:42:14 EDT
Do you remember how long it took before & with which 3.0 builds (such as M7 or 
M6)?
Comment 2 Leopold Welsch CLA 2004-04-27 07:55:36 EDT
I've tested it now with just downloaded and newly unpacked M6 and 2.1.3.
Changing the Classpath takes around 30 min or so to rebuild the Workspace. My
collegues are working either with IDEA or JBuilder, but it doesn't seem, that
they experience the same behaviour.
Comment 3 Leopold Welsch CLA 2004-04-27 07:56:40 EDT
I've forgotten to mentionen, how I launch Eclipse:

start eclipse -vmargs -Xms200M -Xmx512M

Otherwise I run out of Memory in Java.
Comment 4 Kent Johnson CLA 2004-04-27 10:17:30 EDT
Are they running on the same machine as you are (P3 650MHz)?

Given the size of your project, I don't find the time to be that excessive.

How often are you doing full builds?
Comment 5 Kent Johnson CLA 2004-05-04 15:59:41 EDT
Please reopen if you have compile/build times from your fellow employees 
(running on similar machines) that are substantially faster.
Comment 6 Leopold Welsch CLA 2004-05-12 06:23:03 EDT
Somehow this issue is quite mysterious. I have Build all, in Preference 'Perform
build automatically on resource modification' unchecked.

I change an integer in a BoxLayout from 46 => 47 and everything starts to be
rebuild and takes approx. 25 min before apps is launched. So, what is wrong in
my system?
Comment 7 Kent Johnson CLA 2004-05-12 09:44:12 EDT
Why did you uncheck it?

By doing so, eclipse is not incrementally building your workspace & keeping it 
up to date... each of these incremental builds should take a second (unless 
the changes are structural changes to signatures).

How did you build your workspace? Did you choose 'Build All', or hit crtl-B?

I suggest you check the auto-build option again & see what your performance is 
like.
Comment 8 Leopold Welsch CLA 2004-05-12 10:29:44 EDT
I unchecked it, because it takes endless from one change to another. It's not
the seconds I have to wait, it takes time :( Frankly said, currently don't know
what I've changed in the environment, but is there a (easy) way to figure out,
what the time consuming issue has it's base?
Comment 9 Kent Johnson CLA 2004-05-12 10:46:10 EDT
We cannot track it down if you don't give us concrete repeatable testcases. 
Saying it takes time but not timing the actual build doesn't help.

We need concrete data. What changed in your source & how long did it take. 
Pull out your watch. ;)

Also please answer all the questions.

Q. How did you build your workspace when auto-build was turned off? Did you 
choose 'Build All', or hit crtl-B?

Its much harder to predict how long a build will take with auto-build off 
since hundreds of changes could have taken place since the last time you built.

Q. Do you run any ant tasks?

If you do then you may be wiping out the entire build state & your builds will 
take forever.
Comment 10 Leopold Welsch CLA 2004-05-12 10:53:38 EDT
OK, more detailed:

Q1) Build All takes about 25 minutes. I've tried also with 'Clean' but didn't
help. I think I've tried also Ctrl-B, and takes almost same time.

Q2) No ant tasks for launching the app. 

The app should be simply using a Frame, which displayes a formely designed panel
with VE. Code change was Label.settext ("...") to ("... Test"). Whereas I do not
guess, that the changed labeltext would cause that tremendous workload.

I launch the app, the old Panel is displayed (with "...") and next the rebuilt
of the Workspace starts. And this will now take 25 min.
Comment 11 Kent Johnson CLA 2004-05-12 12:15:17 EDT
Ok so turn on auto-build & make the change again.

Change it 3-4 times & see measure long it takes each time to change the string.


'Build All' & 'Clean...' are the same thing. DO NOT USE THEM unless you want 
to rebuild everything.
Comment 12 Kent Johnson CLA 2004-05-12 12:17:22 EDT
Sorry that should have read:

Ok so turn on auto-build & make the change again.

Change it 3-4 times & measure how long it takes each time to change the string.
Comment 13 Leopold Welsch CLA 2004-05-13 05:13:18 EDT
OK, littl bit boring, but I've done so. I've changed the Label 3 times from
which I have detailed time only for

09:46-10:16 = 30 min
10:17-10:45 = 28 min

(the first launch is messy, because I've forgotten to Click on OK).

What I've done?

Change the Label caption, press launch. At this the Workspace start to be
rebuilt and at the end time the new frame is gone displayed. Since I'm doing
also other stuff, this time could be little less, but not dramatically. I've
only done some kind of wordprocessing resp. another session of Eclipse open,
where nothing much was worked on. And frankly said, I do not guess, I could
reduce it more than to 25 min, but even if the time would be reduced to 20 min.
that's TOOO long. So, there is some kind of performance problem, but where?
Comment 14 Leopold Welsch CLA 2004-05-13 07:40:32 EDT
After some looking around (I wasn't able to use that setting for *real* working)
I  guess it is the problem with the Build, that one resource could not be
resolved. But this Java-File is now in a Dir, which is in the Exclusion-List of
the Project.  Therefore I do not understand why this Dir of the Exclusion-List
is ignored.
Comment 15 Leopold Welsch CLA 2004-05-13 08:42:50 EDT
Created attachment 10596 [details]
Exclusion List

Obviously the Exclusion was added to the wrong Exclusion-List. Adding to the
correct one, the Build works quite OK.
Comment 16 Kent Johnson CLA 2004-05-13 10:42:58 EDT
Sorry I didn't follow the last 2 comments.

What are your build times now?

Did you have a major build problem on the project? If you did then every build 
is a FULL build because we cannot successfully build the project.
Comment 17 Leopold Welsch CLA 2004-05-13 10:47:59 EDT
Yeah, problem was that a full build was not possible. Now code change works
within few seconds also start.

Nevertheless, I do not understand why it is so ensential to make the exclusion
in the correct property.
Comment 18 Kent Johnson CLA 2004-05-13 11:07:09 EDT
In the screen shot do you see the error in the problems view?

Its says the project cannot be built, etc.

Did you not see this? It explains the lengthy build times.

Do you not keep the problems view open?
Comment 19 Leopold Welsch CLA 2004-05-13 11:12:47 EDT
Yeah, I've seen this, but I assumed all the time that this path is excluded and
unfortunately it wasn't all the time. I assumed, it is correctly configured and
therefore, why this problem. Asking some collegues with Eclipse experience
helped. Still don't udnerstand why the exclusion list is in this way so
'sensitive', but except of this, this issue if done.
Comment 20 Kent Johnson CLA 2004-05-13 11:30:10 EDT
Well for future reference, we do not generate build problems unless there IS a 
problem.