Solved

Eclipse Content Assist Freezes

Posted on 2010-11-16
5
909 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
  • 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
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 …

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now