Bug 181900 - close / open a single project takes a lot of time
Summary: close / open a single project takes a lot of time
Status: VERIFIED DUPLICATE of bug 145329
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M7   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2007-04-11 05:06 EDT by Eric Jodet CLA
Modified: 2007-04-27 06:19 EDT (History)
0 users

See Also:


Attachments
close project snapshots (426.49 KB, application/x-zip-compressed)
2007-04-11 05:08 EDT, Eric Jodet CLA
no flags Details
open project snapshots (434.42 KB, application/x-zip-compressed)
2007-04-11 05:09 EDT, Eric Jodet CLA
no flags Details
close project Yourkit snapshot - Hot spots (220.53 KB, image/jpeg)
2007-04-11 06:23 EDT, Eric Jodet CLA
no flags Details
open project Yourkit snapshot - Hot spots (192.22 KB, image/jpeg)
2007-04-11 06:31 EDT, Eric Jodet CLA
no flags Details
perf trace - listener on close project (5.76 KB, application/octet-stream)
2007-04-11 10:40 EDT, Eric Jodet CLA
no flags Details
perf trace - listener on open prj (2.44 KB, application/octet-stream)
2007-04-11 10:42 EDT, Eric Jodet CLA
no flags Details
Proposed fix (6.96 KB, patch)
2007-04-12 11:26 EDT, Jerome Lanneluc CLA
no flags Details | Diff
Improved fix (27.81 KB, patch)
2007-04-13 05:54 EDT, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Jodet CLA 2007-04-11 05:06:52 EDT
Version: 3.3.0
Build id: I20070410-1043

J2RE 5.0 IBM J9 2.3 Windows XP x86-32 build j9vmwi3223-20070201

Running Eclipse against the monster workspace: closed a single project (right-click org.eclipse.update.configurator --> close project)

Close operation sounded like hanging and took more than one minute.
I'll attach jvm snapshots

Restarted the workbench and tried to re-open the project I just closed: same issue --> the operation took a lot of time (to_be_attached snapshots)
Comment 1 Eric Jodet CLA 2007-04-11 05:08:23 EDT
Created attachment 63473 [details]
close project snapshots
Comment 2 Eric Jodet CLA 2007-04-11 05:09:22 EDT
Created attachment 63474 [details]
open project snapshots
Comment 3 Eric Jodet CLA 2007-04-11 05:11:10 EDT
see also https://bugs.eclipse.org/bugs/show_bug.cgi?id=181727#c2
Comment 4 Eric Jodet CLA 2007-04-11 06:23:25 EDT
Created attachment 63482 [details]
close project Yourkit snapshot - Hot spots

Took a CPU Yourkit snapshot while closing the same project, and encountering the issue
Comment 5 Eric Jodet CLA 2007-04-11 06:31:19 EDT
Created attachment 63484 [details]
open project Yourkit snapshot - Hot spots

CPU Yourkit snapshot taken while re-opening project
Comment 6 Eric Jodet CLA 2007-04-11 10:40:59 EDT
Created attachment 63499 [details]
perf trace - listener on close project
Comment 7 Eric Jodet CLA 2007-04-11 10:42:11 EDT
Created attachment 63501 [details]
perf trace - listener on open prj
Comment 8 Jerome Lanneluc CLA 2007-04-12 11:26:32 EDT
Created attachment 63622 [details]
Proposed fix
Comment 9 Jerome Lanneluc CLA 2007-04-13 05:54:53 EDT
Created attachment 63712 [details]
Improved fix
Comment 10 Jerome Lanneluc CLA 2007-04-13 09:38:17 EDT
Actually, the cause of this bug is the same as in bug 145329 (i.e. source attachment is the root of the slowness).

Marking this bug as a dup of bug 145329 since bug 145329 is the oldest.

*** This bug has been marked as a duplicate of bug 145329 ***
Comment 11 Jerome Lanneluc CLA 2007-04-13 09:50:06 EDT
Eric can you please try your scenario with the patch attached to bug 145329 and report here whether it improves opening/closing of a project ?
Comment 12 Eric Jodet CLA 2007-04-16 05:10:04 EDT
(In reply to comment #11)
Jérôme,
the fix sounds ok in build , please note another UI issue addressed by bug 182520.
Comment 13 Eric Jodet CLA 2007-04-16 05:10:47 EDT
(In reply to comment #12)
too fast ! OK in Build id: N20070415-0010

Comment 14 Eric Jodet CLA 2007-04-27 06:10:14 EDT
Verified for 3.3 M7 using build I20070427-0010