Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 262987

Summary: [GTK/Linux] Opening any file takes seconds. Disabling network (interface) solves the problem.
Product: [Eclipse Project] Platform Reporter: Martin Hajduch <martin>
Component: IDEAssignee: Paul Webster <pwebster>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Martin Hajduch CLA 2009-01-29 18:41:18 EST
This is very strange problem. I have Ganymede running on two different machines at home. One is relatively slow one - but the speed of IDE is - not surprising, compared to the speed of other applications on the same system.

The other one is Intel 3Ghz quad core Duo 2, with 4Gb RAM and Raid1 disk array. So it should be flying. However, opening ANY file (even a text file in simple text editor) takes seconds. First, new tab is drawn with the editor name (i.e. Text editor, or Java editor) - then nothing happens for 2-4 seconds and finally (and suddenly) the tab is renamed to filename and focused.

I tried creating new user, logging in in failsafe (pure xterm) session, creating brand new workspace, one textfile inside - and the same happens.

No messages in log, neither on the stdout/err.

There is no CPU load during those seconds, it looks like Eclipse is doing nothing but waiting.

After long hours of experimenting and searching the web, I found this:
http://bbs.archlinux.org/viewtopic.php?id=53827

So I tried it and ... guess what ! It helps !

The machine which shows the problem has only eth0 configured to static 192.168. IP address, has absolutely no networking problems, everything behaves normally, etc.
However, disabling eth0 (keeping only localhost) and restarting Eclipse makes wonder. After it is restarted and running fast, I can even enable eth0 again and it still works great. Only when starting with eth0 enabled, it falls into the 'slow mode', whatever it is.

Any ideas ?

Anything I could do in order to produce more useful diagnostic info ?
Comment 1 Remy Suen CLA 2009-01-29 23:58:09 EST
I've seen something like this on Windows before and (I think) it seemed to have been hung on some EFS code that was trying to resolve inet addresses or something.
Comment 2 Martin Hajduch CLA 2009-03-17 12:38:21 EDT
In the meantime I discovered the reason, it is described here:

http://osdir.com/ml/fedora-devel-java/2009-02/msg00026.html

https://bugs.eclipse.org/bugs/show_bug.cgi?id=153936

http://bugzilla.gnome.org/show_bug.cgi?id=346903

I used 'workaround' with -Dorg.eclipse.swt.internal.gtk.disablePrinting in eclipse.ini and it works great (never printed from Eclipse anyway).

Marking as DUPE of older 153936.

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