Bug 127111

Summary: Opening WorkbenchPage.java creates 35M of garbage
Product: [Eclipse Project] JDT Reporter: Nick Edgar <n.a.edgar>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 Keywords: performance
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Nick Edgar CLA 2006-02-09 12:40:07 EST
build I20060208

I noticed that my heap size was getting pretty large (it's up at 215M).
Wondering whether there was a leak, I tried opening and closing various Java editors.
Although I didn't find an obvious leak, it does look like a -lot- of garbage is getting created.

Steps:
- new window in Java perspective
- close all views except Outline view
- open type on WorkbenchPage.java (with org.eclipse.ui.workbench checked out from HEAD)
- close it
- force a GC by clicking on GC button in heap status monitor
- note the heap level
- reopen the file from the File menu (Alt+F, 1)
- note the increase in heap

I'm seeing an increase of 35M.  With the Outline view closed, it's around 30M.

- close the editor
- force a GC
- it's back to the original level, indicating no major leak
Comment 1 Dani Megert CLA 2006-02-09 12:53:07 EST

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