Bug 62164 - Research memory consumption across multiple Eclipse versions
Summary: Research memory consumption across multiple Eclipse versions
Status: VERIFIED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Douglas Pollock CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2004-05-13 15:24 EDT by Douglas Pollock CLA
Modified: 2004-09-22 11:12 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Pollock CLA 2004-05-13 15:24:29 EDT
The goal is to see: 
1.) Are we using significantly more memory than prior versions (discounting 
memory leaks)? 
2.) If so, are there any ways to reduce this memory consumption? 
 
My methodolgy for the first phase is to do the following.  Start with a fresh 
workspace, switch to the CVS perspective.  Check out the platform-ui module.  
Switch to the Java perspective.  Replace each project with the tagged version 
matching the running version.  Import all other plug-ins as binary.  Open ten 
editors.  Activate my memory consumption action set, and check the memory after 
garbage collection.
Comment 1 Douglas Pollock CLA 2004-05-13 15:50:22 EDT
Okay, it is too difficult to check out specific versions of a whole bunch of 
projects.  Plus, some of platform-ui's projects did not exist in 2.1.3.  
Instead, I just check them out from HEAD. 
 
The ten files opened are the 5 files in the root of the org.eclipse.ui project, 
and the first five files in the org.eclipse.ui.commands package. 
Comment 2 Douglas Pollock CLA 2004-05-13 15:51:02 EDT
I do not change the VM's memory heap.  It stays at default (i.e., 64MB). 
Comment 3 Douglas Pollock CLA 2004-05-13 17:34:53 EDT
Someone on the newsgroups said that memory consumption in Eclipse has gone from 
100MB to 160MB.  This is likely the result of memory leaks, which we are 
tracking down separately.  The results listed below include a baseline value, 
which shows how much (percentage-wise) we've increased in memory consumption. 
 
To avoid out of memory errors, I had to switch to a 128MB heap size, rather 
than the planned 64MB heap.  While the numbers all stay lower than 64MB after 
everything is complete, the earlier versions of Eclipse would generate peak 
heaps over the 64MB limit.  All results from 3.0M4 and earlier use a 128MB heap 
size.  3.0M5 and later use 64MB. 
 
    Release          Eclipse Heap (MB)    Heap Size (percentage) 
    ------------------------------------------------------------ 
    I200405111600    51                   138 
    3.0 M8           51                   138 
    3.0 M7           38                   103 
    3.0 M6           32                    86 
    3.0 M5           38                   103 
    3.0 M4           40                   108 
    3.0 M3           40                   108 
    3.0 M2           36                    97 
    2.1.3            37                   100 
 
Each test was only run once.  I'd expect high standard deviation in the 
results. 
 
To get the results, the memory plug-in was copied into the installation, and 
the following was added to the platform feature: 
 
      <plugin id="org.eclipse.ui.tools.memory" download-size="0" 
install-size="0" version="1.0.0"/> 
       
Comment 4 Michael Van Meekeren CLA 2004-05-25 16:37:37 EDT
so the question is what happened in M8?
Comment 5 CLA 2004-05-27 08:45:05 EDT
The new look and feel happened in M8.

PB
Comment 6 Michael Van Meekeren CLA 2004-06-14 13:29:15 EDT
Need to find some help with this, it does not really seem to be UI related.
Comment 7 Douglas Pollock CLA 2004-06-14 14:48:25 EDT
It doesn't?  You've gathered data on this? 
Comment 8 Douglas Pollock CLA 2004-06-14 15:59:39 EDT
From the newsgroup: 
"It is piggish with memory, but RC1 is much improved for me in that  
regard, and I think that it is one of the issues they hope to address  
prior to the final release." 
 
You can follow the thread starting with "RC1 still a bit slow at times..", for 
some description of user experiences with memory consumption. 
Comment 9 Michael Van Meekeren CLA 2004-06-15 16:21:14 EDT
deferring, this is ongoing investigation but at this point there is not solid 
information on which to respond to.
Comment 10 Douglas Pollock CLA 2004-09-10 10:52:02 EDT
I'm looking at this a bit more with regards to Scenario 43 of the WSAD 
performance work. 
Comment 11 Douglas Pollock CLA 2004-09-10 12:41:17 EDT
Eclipse 
------- 
Starting Eclipse after the workspace is already built yields different 
compacted heaps.  The compacted heap gets steadily smaller. 
        3.0 M7  58MB 
        3.0 M8  42MB 
        3.0     37MB 
 
This might indicate that the memory problems were actually related to leaks.  
I'm going to try to re-run my original test and see if the results are still 
skewed. 
 
 
WSAD 
---- 
Starting WSAD 5.1.2 with the set-up from performance scenario 43 yields a 6 to 
9 MB compacted heap.  In the 6.0 integration builds, we see a 30 to 36 MB 
compacted heap.  Hypothetical sources: all types cache, decorators, plug-in 
registry. 
 
Comment 12 Douglas Pollock CLA 2004-09-10 13:30:55 EDT
I re-ran my original test.  It seems that the original discrepancy could be 
attributed to memory leaks introduced during M8, and fixed during the lead-up 
to 3.0. 
 
49MB M7 
63MB M8 
48MB 3.0