Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] How can I prevent the indexer taking over the entire CPU?

Hello all

Is there anything I can do to prevent the indexer from periodically taking over the entire CPU?

Every now and then I will see indexer running in the Progress tab, and my computer will become totally unresponsive. "top" shows the Java process running at several hundred percent.

I am running Eclipse IDE for C/C++ Developers

Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600

This is on 

Ubuntu 14.04
Core i7-4790 CPU @ 3.60GHz
8GB RAM
150GB SSD

My indexer settings are:

Indexer options 
Allow heuristic resolution of includes
Skip files larger than 8MB
Skip included files larger than 16MB
Indexing strategy
Automatically update the index
Cache limits:
Index database cache:
Absolute limit: 4096MB
Limit relative to max heap size: 50%
Header file cache:
Absolute limit: 4096MB

I have the following settings for eclipse.ini

$ cat /opt/eclipse/eclipse.ini 
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-XX:PermSize=2G
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=4G
-Xms4G
-Xmx8G

Thank you in advance, any help is very much appreciated

Back to the top