DLTK indexing EXTREMLY slow [message #1393961] |
Fri, 04 July 2014 11:00  |
Eclipse User |
|
|
|
Hi guys,
recently I've migrated to eclipse luna/pdt from phpeclipse (i know, it's a dinosaur, actually I've just reminded why I had not done it before). phpeclipse doesn't support syntax standards introduced recently, and this is what pushed me to make a change. it makes working with namespces etc. impossible.
eclipse pdt is not better for me though. It supports fresh syntax, but coding is literally IMPOSSIBLE when working with huge frameworks. I created new fresh workspace (i'm working on network drive), imported projects from repositories, libraries (including ZF1 & ZF2 - mapped this as include paths to link it to other projects supported by these frameworks). Much time put in this operation. After all it came out completely useless! DLTK indexing takes AGES (it takes about 30-40 s for a single ZF source file! it's going to take light ages to index the whole framework!). While eclipse indexes the files, coding is not possible at all. It takes about 4-5 s to type a single character. while waiting for character to appear on the screen, eclipse hangs and stops responding. It's been a couple of days since migrated, tested on 2 different network drives.
As mentioned, I'm working on Eclipse luna/pdt, windows 7, workspace is a network drive (i/o speed is fair - all through lan). I've also uninstalled GIT extension.
I've already gone through "5 ways to improve ..." with no effect. Last, but not least, I'm not planning to turn off building workspace. I find it very useful and that would not solve the problem.
Any clues what could be wrong? Are there fellows developers that use similar parameters and having no problems?
thanks!
Tom
|
|
|
|
|
|
|
|
|
Re: DLTK indexing EXTREMLY slow [message #1552258 is a reply to message #1393961] |
Wed, 07 January 2015 22:21  |
Eclipse User |
|
|
|
It's very likely you need to increase Eclipse's maximum heap size.
Find the eclipse.ini and give -Xmx 1536 or 2048MB.
e.g. mine looks like this:
$ cat /Applications/eclipseLuna/Eclipse.app/Contents/MacOS/eclipse.ini
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.php.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms64m
-Xmx2048m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
|
|
|
Powered by
FUDForum. Page generated in 0.06848 seconds