Eclipse Content Assist Slowness with large projects
Asked Answered
H

4

8

I am facing extreme slowness in Java Content Assist with a large java project in Eclipse. The project has a lot of dependent jars (>100). I'm not really sure if the slowness is due to the dependent jars, but I'm guessing thats the case.

Have any of you faced similar issues? I changed the Activation Delay to 500ms to reduce the pain but I still get the "Problems with Content Assist" pop up that suggest disabling Mylyn. I also set the following timeout flag.

-Dorg.eclipse.jdt.ui.codeAssistTimeout=60000

It does not seem to have helped.

-Xmx is set to 900m. I am using a dual core 3 GHz Windows XP 32-bit box with 4 GB RAM.

I would welcome any suggestions or solutions you may have.

Thanks.

Harappa answered 27/11, 2010 at 19:40 Comment(1)
Did you used a decent eclipse.ini? #142857Daile
C
1

Eclipse has a bug whereby if you have large complex Jars in your workspace the Content Assist will slow down to the point of being unusable. See my question here for more.

The bug has been fixed but I can't tell if it's in the current release.

Charpentier answered 28/11, 2010 at 10:21 Comment(2)
Damo, I did read this earlier and initially thought this may not be related, but reading the eclipse bug report again tells me this could be the same issue. But, according to this bugs.eclipse.org/bugs/show_bug.cgi?id=289057 this is already resolved and should be a part of Eclipse 3.6 which is what I'm using. Unfortunately, I use Mylyn a lot so I'm reluctant to disable it.Harappa
I had the problem in 3.6M2. It says it's fixed in 3.6M6 but I couldn't see it listed as a fixed bug in the downloads page. As a test try removing the biggest 10 or 20 jars from the classpath and project and see if that helps the Content Assist.Charpentier
P
2

If any of those jars or the content in the project are not on a fast, local disk, put them on a fast, local disk.

Protectionism answered 28/11, 2010 at 8:30 Comment(1)
I had this issue. It took +10seconds to get a response at times.Spode
C
1

Eclipse has a bug whereby if you have large complex Jars in your workspace the Content Assist will slow down to the point of being unusable. See my question here for more.

The bug has been fixed but I can't tell if it's in the current release.

Charpentier answered 28/11, 2010 at 10:21 Comment(2)
Damo, I did read this earlier and initially thought this may not be related, but reading the eclipse bug report again tells me this could be the same issue. But, according to this bugs.eclipse.org/bugs/show_bug.cgi?id=289057 this is already resolved and should be a part of Eclipse 3.6 which is what I'm using. Unfortunately, I use Mylyn a lot so I'm reluctant to disable it.Harappa
I had the problem in 3.6M2. It says it's fixed in 3.6M6 but I couldn't see it listed as a fixed bug in the downloads page. As a test try removing the biggest 10 or 20 jars from the classpath and project and see if that helps the Content Assist.Charpentier
R
0

Are you using Mylyn? If not... disabling the Mylyn content assist will help you a lot.

Robyn answered 27/11, 2010 at 23:24 Comment(0)
R
0

I was working on a Remote Systems project where JARs were configured from the remote system's /lib folder. I just imported all relevant JARs locally, configured the build path to use these local JARs instead of the remote ones, and Bob's your uncle! The issue is gone!

Randall answered 13/3, 2014 at 11:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.