Bug 69570 - [Indexer] Terminates with out of memory exception.
Summary: [Indexer] Terminates with out of memory exception.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.0.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-08 03:07 EDT by Vaidotas Radžius CLA
Modified: 2004-08-25 10:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vaidotas Radžius CLA 2004-07-08 03:07:24 EDT
Enviroment: Eclipse 3.0 + CDT 2.0
Project: Standard Make C++
Heap size is set to 128m

Steps to reproduce:
1. edit some cpp file
2. press save.
3. While indexer is running switch to problems list from outline
Problems list contains 125 problems sort of "Attempt to use symbol failed...",
"Invalid type encountered..." and "Macro usage error"

Problem:
Error message is shown about too small heap size and ask to increase it.
when I look at the .log I found these new entries:

!ENTRY org.eclipse.ui 4 4 Lie 08, 2004 09:56:34.281
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 Lie 08, 2004 09:56:34.281
!MESSAGE Java heap space
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!ENTRY org.eclipse.cdt.core 4 4 Lie 08, 2004 09:56:50.140
!MESSAGE Background Indexer Crash Recovery
!STACK 0
java.lang.OutOfMemoryError: Java heap space
Comment 1 John Camelon CLA 2004-07-08 09:41:05 EDT
Why are you limiting your heapsize so?  
I am not surprised that you are running out of memory, but I'm not sure if 
this is a valid bug.  
Comment 2 Vaidotas Radžius CLA 2004-07-08 09:53:00 EDT
The same happens if no heap size specified.
Comment 3 John Camelon CLA 2004-07-08 10:00:13 EDT
First of all, I would suggest turning off Indexer Markers if you are having 
memory issues.  They are only there to help in trouble shooting, but are not 
on by default for a reason.  

Out of interest, how many files are in your workspace?
Comment 4 Vaidotas Radžius CLA 2004-07-08 10:17:27 EDT
In C++ projects is about 500 with outputs and without external includes. 
In Simple projects more then 1000 
Comment 5 John Camelon CLA 2004-08-25 10:05:04 EDT
Please retry w/a CDT 2.1 build. 
Let us know if this is any better.
We have improved our memory usage significantly.  
Comment 6 Vaidotas Radžius CLA 2004-08-25 10:18:01 EDT
I tested this one with my one build from head today CDT 20040824 10:00 time 
zone +2
I can not get this exception using indexer. So I think lets make this one fixed.
But I get the same exception when I use content asistant I logged another one 
PR 72330 for that.
Comment 7 John Camelon CLA 2004-08-25 10:24:00 EDT
OK thank you!