Bug 12704 - Text Search causes a large growth in size of java.exe
Summary: Text Search causes a large growth in size of java.exe
Status: RESOLVED DUPLICATE of bug 16731
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2002-04-03 12:22 EST by Tod Creasey CLA
Modified: 2002-05-24 20:43 EDT (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 Tod Creasey CLA 2002-04-03 12:22:11 EST
Using the Hursely VM in build 20020402

When I import all of Eclipse into the workbench and then do a Text Search on 
the word Action (I cannot currently bench Java Search due to Bug 12683) the 
size of java.exe grows from 72,720 K to 118,152K and my heap allocation grows 
to 50046K. This in an of itself is a pretty bug performance hit.

Here are some interesting numbers. After closing the Search results and before 
a GC I had
45408 extra Strings
4174 extra DataTreeNodes
8237 extra Paths.


However this growth is cumulative. If I create a new Simple Project (KH 
indicated that this resets some internal state)and then run the search again 
the size of java.exe grows to 138, 480K. A third running brings it  to 174,592 
K.
Comment 1 Tod Creasey CLA 2002-04-17 15:12:38 EDT
When I did a Java Search for References to String in a workbench will all of 
Eclipse in it my memory footprint went from 85 Med to 184 Meg using the 1.3.1 
Hursley VM.
Comment 2 Erich Gamma CLA 2002-05-04 18:55:16 EDT
The hursley VM is known to never free memory. This should also be benched on 
other VMs.
Comment 3 Erich Gamma CLA 2002-05-12 06:45:10 EDT
We should do a leak check for a text search.
I suspect that the heap growth is caused by tons of matches, they will be freed 
when the search results are cleared.
Comment 4 Erich Gamma CLA 2002-05-24 20:43:35 EDT

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