Solved

Eclipse Content Assist Freezes

Posted on 2010-11-16
5
974 Views
Last Modified: 2012-05-10
Greetings Eclipse Users,
   I have been facing a problem with Eclipse's content assist. There was no particular time when it started. It just gradually got worse. When I go to type in a method name for an object, here is the sequence of events:
1) Type in object name
2) Type '.'
3) Content assist list pops up. No freeze yet.
4) Begin typing first few letters of method.
5) Only the first letter shows up. Eclipse freezes.
6) Processor usage jumps to 70%
7) 5-10 seconds later Eclipse window grays out, says Not Responding
8) ... ... ... 15-30 seconds later... ...
9) Eclipse unfreezes.
10) The next few letters show up.
11) The content-assist pop-up catches up, and shows the right suggestions.

I have come across many mentions of slightly similar problems and almost as many suggested solutions. None of them have worked so far. If you have seen this problem exactly, how did you solve it?

Here is a screenshot. This is what I see for 15-50 seconds. I still use content assist so disabling it is not currently an option. Note: Reinstalling eclipse did not solve the problem, it only decreased it.
 Frozen Content Assist
0
Comment
Question by:tau161
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:tau161
ID: 34179740
Doubling the points from 125 to 250.
0
 
LVL 20

Expert Comment

by:Venabili
ID: 35450052
Restart Eclipse is the only thing that helps if it start freezing on me -- usually after having it up for 2-3 days, Content Assist will become highly inrespsnitive and Eclipse needs a restart. Occasionally that stops working in which case I would wipe Eclipse, unzip it clean and recreate all projects (which is a pain)

Does this happen every time? If so - how much memory do you have on the machine (that's a Java Editor after all)

Does it happen in every project? If just in one - recreate it

When you said you reinstalled Eclipse - do you just removed the old one and unzippied a new one and kept using the same projects or did you also recreate all projects from scratch? If the latter -- well... the problem still can be in one of the projects.
0
 

Accepted Solution

by:
tau161 earned 0 total points
ID: 35479591
Thank you for the reply.
I ended up solving this a while back.

I still don't know what the original cause was (or even if it is still in effect), but after many iterations on fresh installs, I found a particular combination of two actions that did the trick.

Part 1: Use only a JDK, not a JRE. Switch all Eclipse references to the JDK. Make sure to get them all. Start with: Preferences -> Java -> Installed JREs

Part 2: Download the official Java doc files (~50MB zipped) and keep it locally (instead of Eclipse hitting the URLs for content assist.)
Point Eclipse to the local copy: Preferences -> Java -> Installed JREs -> <the JDK> -> [Edit]
 - For each "JRE System Library", choose the Javadoc location...
 - Select the location of the local javadocs. Multiple ways to do this.

After doing these two things, Content Assist made me happy again.
0
 
LVL 20

Expert Comment

by:Venabili
ID: 35479926
Great work :)

I usually have all JDKs and rarely use JRE (my old editor needed JDK... so when switching to Eclipse, it remained as a rules).

As for the Javadoc - I work offline quite a lot so I never configure anything to hit online.

Anyway - good thing you are happy again (and I had not even realised how old that question is - so apologies for posting at all - although on the other hand we have an answer now ;) )
0
 

Author Closing Comment

by:tau161
ID: 35503411
Self-solved.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question