Bug 118947 - Code completion causes network access and is slooooow
Summary: Code completion causes network access and is slooooow
Status: RESOLVED DUPLICATE of bug 117740
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-01 18:41 EST by Susan McCourt CLA
Modified: 2005-12-02 02:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2005-12-01 18:41:23 EST
2005I11291200 (and likely the previous week's I-build, but not sure...).

When I type "." and code completion is invoked, there is a LONG delay (10-15 seconds) before the code completion popup is shown.  I just realized today that it only happens when I'm connected to the internet, and that the delay is caused by some serious network access that is occurring.  When connected, it consistently occurs.

For example,
- open org.eclipse.jface.operation.ModalContext.java
- In the first line of a method body (any method) type:
    System.
- There is a 10-15 second delay before the completion popup comes up

During this period I can see heavy internet activity, and my Zone Labs firewall logs a blocked incoming UDP packet from my router. 

It happens from any class and even from a clean workspace.  

I'm sorry that I can't say exactly when it started, but between US Thanksgiving holidays and coincidentally working off network for large parts of the day, I thought this problem had appeared briefly and then gone away.  I didn't realize how easily reproducible this is when connected.

It's possible there's something changed/bad going on in my network environment, but I haven't seen any observable problems other than the code completion hang and observable net traffic.  If I set my firewall to block all internet traffic, then code completion pops up as expected.
Comment 1 Susan McCourt CLA 2005-12-01 19:31:38 EST
As a sanity check, I've rechecked the behavior on 3.1 and everything is normal...no network traffic or slowdown.

The blocked UDP requests are a red herring - that is just my router looking for the computer that is set up for logging incoming/outgoing requests.  If I disable logging for the router, the UDP requests don't occur and aren't blocked.

But I'm still seeing the network being hammered and a severe delay in code completion popup.
Comment 2 Dani Megert CLA 2005-12-02 02:59:45 EST
Workaround is to attach source or delete the Javadoc location of your rt.jar.

*** This bug has been marked as a duplicate of 117740 ***