Bug 181900

Summary: close / open a single project takes a lot of time
Product: [Eclipse Project] JDT Reporter: Eric Jodet <eric_jodet>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 Keywords: performance
Version: 3.3   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
close project snapshots
none
open project snapshots
none
close project Yourkit snapshot - Hot spots
none
open project Yourkit snapshot - Hot spots
none
perf trace - listener on close project
none
perf trace - listener on open prj
none
Proposed fix
none
Improved fix none

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