Bug 63052 - [Search] Search causes an out-of-memory error on Solaris
Summary: [Search] Search causes an out-of-memory error on Solaris
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 2.0   Edit
Hardware: PC Solaris
: P2 major (vote)
Target Milestone: 2.0.1   Edit
Assignee: Andrew Niefer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-19 14:11 EDT by James Ciesielski CLA
Modified: 2004-08-16 15:29 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 James Ciesielski CLA 2004-05-19 14:11:34 EDT
CDT 200405170943
Eclipse 200405140800

I have a large (>300 file) project.  When I define a working set that contains a
subset of these files and search for enumeration declarations - search will kill
eclipse after 7 minutes because it has run out of memory.

Please let me know if you want a copy of the project I am using.

Note:  I was unable to reproduce this problem on Windows
Comment 1 John Camelon CLA 2004-05-19 14:27:48 EDT
Out of interest, does the same problem occur if you start Eclipse w/512MB of 
memory (as compared to the 256 which is default)?
Comment 2 James Ciesielski CLA 2004-05-19 15:23:59 EDT
I tried 2 consecutive searches (where the IDE was configured with 512MB) and did
not get the out-of-memory error, but each search took <7 minutes to complete.

Worth noting:  I always get the correct # of results in the first 30 seconds,
but the remainder of the search just drags on.  And when using 256MB, I get the
out-of-memory error.
Comment 3 John Camelon CLA 2004-05-20 16:25:49 EDT
Bog, we'll need to sit down and debug this post-M9Interesting that .  
Comment 4 Bogdan Gheorghe CLA 2004-05-20 17:22:41 EDT
I'm pretty sure this is platform related... Do you get a stack trace?
Comment 5 James Ciesielski CLA 2004-05-20 17:27:00 EDT
Unfortunately no.
Comment 6 Bogdan Gheorghe CLA 2004-05-26 15:20:44 EDT
James - Is this reproducible on a M9 build?
Comment 7 David Daoust CLA 2004-06-21 14:00:27 EDT
I will move this to 2.0.1.  We are targeting 2.0.1 to improve parser 
performance and memory usage.
Comment 8 John Camelon CLA 2004-08-16 10:14:57 EDT
Andrew, please validate as to whether or not this has been solved.  
James, what project were you using to reproduce this exception?
Thanks in advance
Comment 9 Andrew Niefer CLA 2004-08-16 15:29:40 EDT
Using the latest from the 2.0.1 branch with default memory size (256?), I was 
able to search for * in a workspace containing approx 800 files of generated 
source.  It took approx 3 minutes to find almost 10k matches with no memory 
problems.