Eclipse PDT is freezing from time to time

戏子无情 提交于 2019-12-12 12:33:24

问题


I am usign Eclipse PDT Helios and it sometimes freezes for 2-3 seconds even when working with small PHP files, like 10 rows without any includes in them or any complex statement that may cause a problem while parsing. My machine has more than 3GB RAM and I have setup the HEAP size to 990MB. The CPU is Intel E7500 2.9Ghz.

What could be the problem? It is annoying to work like that. I understand when it "thinks" for few seconds when opening large files like > 50KB but how about the small ones. It also freezes when I am making a change or I save the file. This is slowing the development process. I can have a freeze every min or 2 :(

Not sure if this is the right forum, but this is a programming problem connected with the IDE so I guess people here will not mind helping me if they can.

I am using Eclipse for PHP development with Subclipse installed and my working copies are on a server in our local network.

My current eclipse.ini is

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.php.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dorg.eclipse.swt.internal.gtk.disablePrinting
-Dosgi.requiredJavaVersion=1.5
-Xms1024m
-Xmx1024m
-XX:PermSize=512m
-XX:MaxPermSize=512m


回答1:


I wrote an article on speeding up PDT indexing. It might help.




回答2:


There are known issues with PDT 3.1 and eclipse 4.2 (juno).

https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272

This is the solution:

Open a different perspective (for example java, but not php) and restart eclipse. Afterwards you can savely switch back to php perspective. Eclipse will have no (pdt induced) performance issues.

Also mentioned here



来源:https://stackoverflow.com/questions/4041156/eclipse-pdt-is-freezing-from-time-to-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!