Bug 94235 - NFS mounted workspace causes hang
Summary: NFS mounted workspace causes hang
Status: RESOLVED DUPLICATE of bug 44735
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.0.2   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-10 01:30 EDT by Geoff Sweet CLA
Modified: 2005-05-17 13:57 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Sweet CLA 2005-05-10 01:30:19 EDT
Greetings,
  I am running Eclipse 3.0.2 on Ubuntu "Hoary".  Kernel 2.6.10-5.  I have
Eclipse placed in /usr/local/eclipse.  I am launching the application from a
desktop launcher.  When the splash screen appears it prompts for a workspace
location.  The following scenarios have been experienced:

- workspace is on an NFS share causes the startup to hang indefinately.
- workspace is a link to a workspace directory on an NFS share causes the
startup to hang indefinately.
- workspace on the local disk works properly.

I realize this is pretty insignificant, but the app is so useful I thought I
would give feedback where I can.  Please let me know if I can provide anymore
information. 

I saw in some other posts that Eclipse generates a logfile.  I would have
included that but I was unable to locate it.
Comment 1 Billy Biggs CLA 2005-05-10 07:54:24 EDT
Do the hangs stop if you use 'eclipse -vmargs -Dosgi.locking=none' ?
Comment 2 Rafael Chaves CLA 2005-05-10 10:39:03 EDT
If what Billy suggests works, that means your NFS setup has problems (another
dup of bug 44735). Eclipse is trying to lock a file, and the call that tries
locking a file never returns.

Also, what is the VM being used?
Comment 3 Roby Joehanes CLA 2005-05-16 18:29:52 EDT
I have a Gentoo Linux machine (x86), connected to another Gentoo Linux machine
(SPARC) for an NFS share. The problem is that if Eclipse decided to rebuild the
whole workspace (for some reason), it crashes the client machine. The server is
fine, though. After this crash, any subsequent run of Eclipse will crash the
machine because Eclipse keeps trying to rebuild the workspace.

Another quirk related to this is: If I have multiple projects in the workspace,
I need to import them one by one to let Eclipse build them one by one. If I
import all projects (5 projects, total), Eclipse crashes just like I described
above.

So, when I encounter any crashes that involves rebuilding the whole workspace, I
just delete workspace/.metadata directory and reimport every project one by one.

Otherwise, Eclipse will play nice with NFS.

I use NFS version 4 for both server and client. All other programs work
perfectly fine. For some reason, Eclipse doesn't want to play nice under NFS 3,
citing that the file system doesn't have locking capabilities.

Client configuration:
* Pentium III 933 MHz, using Linux kernel 2.6.11-gentoo-r4.
* Sun's JDK 1.5.0_02-b09 on Linux x86.
* NFS built into the kernel, with v4 support. No other parameters are involved
* Workspace directory mounted as NFS version 4 share
* Eclipse 3.1M5.

Server configuration:
* Ultra SPARC 10 440MHz, Linux kernel 2.6.9
* NFS built as module, with v4 support. No other parameters are involved
* Server also acts as the CVS server.
Comment 4 John Arthorne CLA 2005-05-17 10:49:25 EDT
Does the workaround in comment #1 avoid the hang for you?

The error log file is located under workspace/.metadata/.log.  If this file
contains errors from around the time of any crash, error, or hang, please attach
it here.  Attach the log using the "Create a New Attachment" link.

Finally, another useful piece of information you can provide is a stack trace at
the time of the hang.  Execute "kill -3 <pid>" Where <pid> is id of the Java
process. This will produce a core file that you can also attach to this bug.
Comment 5 Rafael Chaves CLA 2005-05-17 11:06:37 EDT
Also, note that this PR has nothing to do with crashes while running Eclipse, so
you should report that problem as a separate PR.
Comment 6 Geoff Sweet CLA 2005-05-17 13:46:37 EDT
The switch used in comment #1 does indeed resolve the issue.  I am trying to
understand what is incorrectly setup in my NFS environment that is causing this.
 If I find the cause, is there interest in me posting it to this bug for
archival and search purposes?

-G
Comment 7 Rafael Chaves CLA 2005-05-17 13:57:58 EDT
Please do so (in bug 44735). Also, check out bug 44735 comment 51.

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