Community
Participate
Working Groups
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
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.
The same happens if no heap size specified.
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?
In C++ projects is about 500 with outputs and without external includes. In Simple projects more then 1000
Please retry w/a CDT 2.1 build. Let us know if this is any better. We have improved our memory usage significantly.
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.
OK thank you!