Solved

Eclipse Content Assist Freezes

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB Script to add site to Java Exception List 4 78
why cannot we forward request once the response is committed 2 42
hibernate jars 4 32
throw exception 21 44
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

809 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