Eclipse is very slow when using Code Assist (org.eclipse.mylyn.java.ui.javaAllCompletionProposalComputer)

不羁岁月 提交于 2019-12-05 20:32:45

I was mucking with eclipse.ini and doubled the XXMaxPermSize to 512M. According to Sun:

MaxPermSize specifies the the maximum size for the permanent generation heap, a heap that holds objects such as classes and methods.

Like magic, the hang is gone. I would not be surprised if Eclipse uses the permanent generation heap to store/sort candidates for Content Assist and thrashes if the heap gets overloaded.

I had the same problem. Increased heap, changed VM, nothing worked. Until I found that one of my dependencies was a library shared via network drive. I copied the JAR locally and changed the dependency. My hang time went away.

I have the same problem. This is due to an error in workspace. My solution is get rid of error workspace, switch to another workspace folder and import my projects again.

EugeneP

Well for those interested: the only solution I found is get back to the Ganymede (The most recent version today is Galileo 3.5.1).

I tried Galileo Classic and Galileo 3.5.1 Java EE, both freshly downloaded, neither worked with that project. Eclipse hangs up and uses 100% of CPU resource.

Ganymede works fine.

If Mylyn is not used another solution could be to disable the automatic activation of the Mylyn plug-ins on startup: Window -> Preferences -> General -> Startup and Shutdown

This did it for me.

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