This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

large memory usage

Other Parts Discussed in Thread: CCSTUDIO

Hi,

 

I am using Code Compose 4.2.3.00004.

I regularly have to kill the application and restart it because it is using up large amounts of memory (600Meg +).  Can anybody give me any insight as to why my projects might be doing this?

 

Thanks

 

Mike

  • Michael Ruhl said:

    I regularly have to kill the application and restart it because it is using up large amounts of memory (600Meg +).  Can anybody give me any insight as to why my projects might be doing this?

    Do you mean CCS uses up a large amount of memory and locks up? Can you provide more details on when this happens - does a particular sequence of steps trigger it? Is it consistently reproducible or happen rather randomly?

    Could you check if there are error logs (Eclipse error logs or crash dump files) generated and post them here? Check this article for details on generating error logs: http://processors.wiki.ti.com/index.php/Troubleshooting_CCS#CCS_Diagnostic_Logs

  • CCS uses up a large amount of memory and then locks up.  Sometimes I will get a message that says that it is low on memory, some times my system gets so slow that I have to kill the process (it will always be taking up large amounts of memory at that time).  When I kill it, it creates a crash dump that is sent to TI.  Sometimes it dies on its own.  I have not determined a sequence, but it does seem to happen after I have been searching for things.  Or it might be occurring when the indexer runs.  It is not clear.

    I am not sure about the consistency, but I do have to restart 2 or three times a day because of the memory issue.

    I have turned on the debug log and will include that info when I get it.

    Here is my Eclipse log.   There are several crashes.

     

    There are also sever error messages (Invalid menu extension, skipping builder).  Not sure if they are relevant or interesting.

    When I get the debug log, I will add that as well.

     

    !SESSION 2011-04-28 14:45:49.099 -----------------------------------------------
    eclipse.buildId=4.2.3.00004
    java.version=1.5.0_14
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -data C:\Source\LongRange\Nucleus -os win32 -ws win32 -arch x86

    !ENTRY org.eclipse.ui 4 4 2011-04-28 14:46:17.537
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.ccstudio.managedbuild.ui.actions.UpgradeCodegenToolVersionAction

    !ENTRY org.eclipse.ui 4 4 2011-04-28 14:46:17.537
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.common.project.ui.actions.ApplyProjectTemplateAction

    !ENTRY org.eclipse.ui 4 4 2011-04-28 14:46:17.537
    !MESSAGE Invalid Menu Extension (Path is invalid): org.eclipse.rtsc.xdctools.project.ui.actions.UpgradeRTSCProductVersionAction

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:50:09.306
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project cipher_suite. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:50:21.166
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project esal. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:50:22.510
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project esal_dm644xevm_revc. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:50:23.728
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project fal. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:50:51.932
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project i2c. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:50:59.776
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project nat. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:52:43.558
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project plus. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:56:45.219
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project net. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:56:50.438
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project shell. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:56:59.344
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project spi. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:57:10.782
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project webserv. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-04-28 14:57:48.064
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project xprot. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
    !SESSION 2011-05-20 15:54:52.440 -----------------------------------------------
    eclipse.buildId=4.2.3.00004
    java.version=1.5.0_14
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -data C:\Source\LongRange\Nucleus -os win32 -ws win32 -arch x86

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:06:21.441
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project cipher_suite. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:06:28.863
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project esal. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:06:30.269
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project esal_dm644xevm_revc. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:06:31.379
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project fal. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:06:44.489
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project i2c. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:06:49.911
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project nat. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:07:31.177
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project plus. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:10:58.120
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project net. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:11:03.823
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project shell. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:11:13.714
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project spi. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:11:26.308
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project webserv. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-20 16:12:02.294
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project xprot. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.
    !SESSION 2011-05-23 08:20:02.554 -----------------------------------------------
    eclipse.buildId=4.2.3.00004
    java.version=1.5.0_14
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 08:25:05.020
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project xprot. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.update.core 4 0 2011-05-23 10:04:03.954
    !MESSAGE Error processing update site mirror. [The declaration for the entity "HTML.Version" must end with '>'.]
    !STACK 0
    org.xml.sax.SAXParseException: The declaration for the entity "HTML.Version" must end with '>'.
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at org.eclipse.update.core.model.DefaultSiteParser.getMirrors(DefaultSiteParser.java:829)
        at org.eclipse.update.core.model.DefaultSiteParser.processSite(DefaultSiteParser.java:514)
        at org.eclipse.update.core.model.DefaultSiteParser.handleInitialState(DefaultSiteParser.java:396)
        at org.eclipse.update.core.model.DefaultSiteParser.startElement(DefaultSiteParser.java:200)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at org.eclipse.update.core.model.DefaultSiteParser.parse(DefaultSiteParser.java:156)
        at org.eclipse.update.core.model.SiteModelFactory.parseSite(SiteModelFactory.java:81)
        at org.eclipse.update.internal.core.SiteURLFactory.createSite(SiteURLFactory.java:80)
        at org.eclipse.update.internal.core.InternalSiteManager.createSite(InternalSiteManager.java:334)
        at org.eclipse.update.internal.core.InternalSiteManager.createSite(InternalSiteManager.java:326)
        at org.eclipse.update.internal.core.InternalSiteManager.createSite(InternalSiteManager.java:291)
        at org.eclipse.update.internal.core.InternalSiteManager.attemptCreateSite(InternalSiteManager.java:222)
        at org.eclipse.update.internal.core.InternalSiteManager.getSite(InternalSiteManager.java:162)
        at org.eclipse.update.core.SiteManager.getSite(SiteManager.java:78)
        at org.eclipse.update.search.UpdateSearchRequest.searchOneSite(UpdateSearchRequest.java:447)
        at org.eclipse.update.search.UpdateSearchRequest.performSearch(UpdateSearchRequest.java:294)
        at org.eclipse.update.ui.UpdateJob.runUpdates(UpdateJob.java:207)
        at org.eclipse.update.ui.UpdateJob.run(UpdateJob.java:168)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    !SESSION 2011-05-23 11:54:44.728 -----------------------------------------------
    eclipse.buildId=4.2.3.00004
    java.version=1.5.0_14
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -data C:\Source\LongRange\Nucleus -os win32 -ws win32 -arch x86

    !ENTRY org.eclipse.ui 4 4 2011-05-23 11:54:59.056
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.ccstudio.managedbuild.ui.actions.UpgradeCodegenToolVersionAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 11:54:59.056
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.common.project.ui.actions.ApplyProjectTemplateAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 11:54:59.056
    !MESSAGE Invalid Menu Extension (Path is invalid): org.eclipse.rtsc.xdctools.project.ui.actions.UpgradeRTSCProductVersionAction
    !SESSION 2011-05-23 14:13:55.779 -----------------------------------------------
    eclipse.buildId=4.2.3.00004
    java.version=1.5.0_14
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86

    !ENTRY com.ti.ccstudio.debug.core 4 0 2011-05-23 14:54:26.183
    !MESSAGE Fatal Error: IcePick_C_0: Error connecting to the target: (Error -180 @ 0x0) The controller has detected a target power loss. The user must turn-on or connect the power supply for the target. (Release 5.0.333.0)


    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:10:48.502
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.ccstudio.managedbuild.ui.actions.UpgradeCodegenToolVersionAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:10:48.502
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.common.project.ui.actions.ApplyProjectTemplateAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:10:48.502
    !MESSAGE Invalid Menu Extension (Path is invalid): org.eclipse.rtsc.xdctools.project.ui.actions.UpgradeRTSCProductVersionAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:11:08.363
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.ccstudio.managedbuild.ui.actions.UpgradeCodegenToolVersionAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:11:08.363
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.common.project.ui.actions.ApplyProjectTemplateAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:11:08.378
    !MESSAGE Invalid Menu Extension (Path is invalid): org.eclipse.rtsc.xdctools.project.ui.actions.UpgradeRTSCProductVersionAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:11:50.350
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.ccstudio.managedbuild.ui.actions.UpgradeCodegenToolVersionAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:11:50.350
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.common.project.ui.actions.ApplyProjectTemplateAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:11:50.365
    !MESSAGE Invalid Menu Extension (Path is invalid): org.eclipse.rtsc.xdctools.project.ui.actions.UpgradeRTSCProductVersionAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:11:55.912
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.ccstudio.managedbuild.ui.actions.UpgradeCodegenToolVersionAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:11:55.912
    !MESSAGE Invalid Menu Extension (Path is invalid): com.ti.common.project.ui.actions.ApplyProjectTemplateAction

    !ENTRY org.eclipse.ui 4 4 2011-05-23 15:11:55.912
    !MESSAGE Invalid Menu Extension (Path is invalid): org.eclipse.rtsc.xdctools.project.ui.actions.UpgradeRTSCProductVersionAction

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:06.651
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project cipher_suite. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:09.354
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project esal. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:09.698
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project esal_dm644xevm_revc. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:10.932
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project fal. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:14.245
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project i2c. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:14.620
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project nat. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:20.042
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project plus. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:33.262
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project net. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:35.106
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project spi. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.core.resources 2 1 2011-05-23 15:13:36.746
    !MESSAGE Skipping builder com.mentor.nucleus.builder.CodeLabBuilder for project webserv. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.ui 4 4 2011-05-23 17:56:14.376
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.core.jobs 4 2 2011-05-23 17:56:14.376
    !MESSAGE An internal error occurred during: "C/C++ Indexer".
    !STACK 0
    java.lang.OutOfMemoryError: Java heap space
        at java.io.BufferedWriter.<init>(Unknown Source)
        at java.io.BufferedWriter.<init>(Unknown Source)
        at org.eclipse.core.runtime.adaptor.EclipseLog.logForStream(EclipseLog.java:427)
        at org.eclipse.core.runtime.adaptor.EclipseLog.openFile(EclipseLog.java:241)
        at org.eclipse.core.runtime.adaptor.EclipseLog.log(EclipseLog.java:282)
        at org.eclipse.core.internal.runtime.PlatformLogWriter.logging(PlatformLogWriter.java:36)
        at org.eclipse.core.internal.runtime.RuntimeLog.log(RuntimeLog.java:68)
        at org.eclipse.core.internal.runtime.InternalPlatform.log(InternalPlatform.java:825)
        at org.eclipse.core.internal.runtime.Log.log(Log.java:56)
        at org.eclipse.cdt.core.CCorePlugin.log(CCorePlugin.java:229)
        at org.eclipse.cdt.core.CCorePlugin.log(CCorePlugin.java:224)
        at org.eclipse.cdt.internal.core.pdom.indexer.full.PDOMFullReindex$1.visit(PDOMFullReindex.java:54)
        at org.eclipse.cdt.internal.core.model.CElement.accept(CElement.java:485)
        at org.eclipse.cdt.internal.core.model.CElement.accept(CElement.java:492)
        at org.eclipse.cdt.internal.core.model.CElement.accept(CElement.java:492)
        at org.eclipse.cdt.internal.core.pdom.indexer.full.PDOMFullReindex.run(PDOMFullReindex.java:43)
        at org.eclipse.cdt.internal.core.pdom.PDOMIndexerJob.run(PDOMIndexerJob.java:60)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    !ENTRY org.eclipse.ui 4 0 2011-05-23 17:56:14.376
    !MESSAGE Java heap space
    !STACK 0
    java.lang.OutOfMemoryError: Java heap space
        at java.io.BufferedWriter.<init>(Unknown Source)
        at java.io.BufferedWriter.<init>(Unknown Source)
        at org.eclipse.core.runtime.adaptor.EclipseLog.logForStream(EclipseLog.java:427)
        at org.eclipse.core.runtime.adaptor.EclipseLog.openFile(EclipseLog.java:241)
        at org.eclipse.core.runtime.adaptor.EclipseLog.log(EclipseLog.java:282)
        at org.eclipse.core.internal.runtime.PlatformLogWriter.logging(PlatformLogWriter.java:36)
        at org.eclipse.core.internal.runtime.RuntimeLog.log(RuntimeLog.java:68)
        at org.eclipse.core.internal.runtime.InternalPlatform.log(InternalPlatform.java:825)
        at org.eclipse.core.internal.runtime.Log.log(Log.java:56)
        at org.eclipse.cdt.core.CCorePlugin.log(CCorePlugin.java:229)
        at org.eclipse.cdt.core.CCorePlugin.log(CCorePlugin.java:224)
        at org.eclipse.cdt.internal.core.pdom.indexer.full.PDOMFullReindex$1.visit(PDOMFullReindex.java:54)
        at org.eclipse.cdt.internal.core.model.CElement.accept(CElement.java:485)
        at org.eclipse.cdt.internal.core.model.CElement.accept(CElement.java:492)
        at org.eclipse.cdt.internal.core.model.CElement.accept(CElement.java:492)
        at org.eclipse.cdt.internal.core.pdom.indexer.full.PDOMFullReindex.run(PDOMFullReindex.java:43)
        at org.eclipse.cdt.internal.core.pdom.PDOMIndexerJob.run(PDOMIndexerJob.java:60)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

  • Michael,

    From my experience I have some comments about memory usage:

    - If your project is very large, the indexer can use quite a lot of heap memory while indexing everything. To help you monitor this you can enable the heap monitor. Go to menu Window --> Preferences --> General --> Show heap status.

    - If you notice there is too much heap memory being used, you can either clean up some by manually running the garbage collector (a small trash can icon on the heap monitor) or increase its size by closing CCS and modifying the -Xmx256m to 384m or 512m in the file <eclipse.ini> located at %CCS_INSTALL_DIR%\ccsv4\eclipse . Do not increase this too much as it will reduce the available memory for other operations (debugger, etc.). Also, avoid increasing the -Xms40m as it can reduce the available heap that can be freed. 

    - How much physical memory do you have in your system? Although most of the time 2GB of RAM is enough (the 32-bit JVM used by CCS can allocate go up to 2GB), under extreme conditions (large projects or large hardware configurations) and the use of a newer operating system (Windows Vista/7) can quickly exhaust this.  

    Unfortunately memory usage is very difficult to minimize due to the thorough mapping performed by the Indexer or the added features on the debugger (register views, etc.). One attempt to reduce this is to disable the indexer or reduce its scope (right click on the project --> Properties --> C/C++ Indexer).

    Hope this helps,

    Rafael

     

  • At the moment the heap status shows 62M of 125M.  I have seen this increase to 512M

     

    I did increase the heap size to 512M.  I have 4G (Windows XP).  I have also been using the debugger with a lot of different registers views.

     

    From your comments, I think that the indexer may be the may be the main culprit.  I will try reducing the scope.

     

    Thanks,

     

    Mike

  • Mike,

    One detail is that, after the Indexer finished creating the hash table (in my large project it took 20~30min and 450MB of disk space), the heap and memory usage decreased a lot. Subsequent launches of CCS use reasonable amounts of memory.

    Maybe you can try leaving CCS alone while it finishes creating it, therefore you don't need to lose the full indexer functionality.

    Best regards,

    Rafael

  • Rafael,

    The big issue is that it usually crashes if I let it run over night (runs out of memory).  Maybe I can increase my memory size and let it finish.  I will try that.

     

    Thanks,

     

    Mike