Bug 118409 - Eclipse freezes when saving java files on large dynamic web projects
Summary: Eclipse freezes when saving java files on large dynamic web projects
Status: CLOSED DUPLICATE of bug 119105
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.0 M10   Edit
Assignee: Tim deBoer CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2005-11-29 07:24 EST by Ehrann Mehdan CLA
Modified: 2006-11-21 14:29 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 Ehrann Mehdan CLA 2005-11-29 07:24:50 EST
Using:
eclipse-SDK-3.1.1-win32, WTP wtp-1.0M9, GEF-SDK-3.1.1, 
JEM-SDK-1.1.0.1, emf-sdo-xsd-SDK-2.1.1 
OS: windows XP SP2
JDK: j2sdk1.4.2_03

Steps to reproduce:

1) I set up a web dynamic project (a large, 1000 classes and above project)
2) I have "Build automatically" set on
3) I have NO validations turned on.
4) I add a server (tomcat 5.0 , JDK 1.4.2_3)
5) I publish, run the server. 
6) open a Java file, type a single space somewhere 
7) press save

Outcome:
eclipse freezes for 10 to 20 seconds

Workaround: (this may sound very weird but it's reproducible!)

8) open any jsp file.
9) type a single space.
10) wait about 10 seconds till eclipse unfreezes
11) now all future saves will be asynchronous BOTH for jsp's and Java files
Isn't that weird?

Another workaround: set "build automatically" off, remove tomcat server and restart eclipse.

Does something happen in the first save of a JSP that doesn't happen in the first save of a Java file?
Comment 1 Tim deBoer CLA 2005-11-30 18:38:59 EST
Tried to reproduce - I saw a build that was a little long (4-5s) but nothing I would call freezing.

When you say 'freezes', do you mean actual UI freeze, or just a long build? I'll give this another try tomorrow, but any more information you can provide would be helpful.
Comment 2 Tim deBoer CLA 2005-12-05 15:44:14 EST
I beleive this is a duplicate of 119105 (delta calculation was an O^2 algorithm and broke down on large folders) which I am dropping a fix for today. I was able to modify and publish a web app with 5000 files in it with negligable performance hit. Please verify once 119105 is in a build and if you still see any problems please reopen this bug with detailed instructions on how to reproduce. Thanks.

*** This bug has been marked as a duplicate of 119105 ***
Comment 3 Tim deBoer CLA 2006-11-21 14:29:03 EST
Closing old bugs.