Solved

Eclipse Content Assist Freezes

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 75
Problem to start Neon 20 82
Java / Linux and Regular Expressions 11 67
simple java question 3 43
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
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…

947 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

22 Experts available now in Live!

Get 1:1 Help Now