This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243632 - Opening project takes hours when the source folder mounted with sshfs
Summary: Opening project takes hours when the source folder mounted with sshfs
Status: RESOLVED DUPLICATE of bug 242143
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 14:33 UTC by Geron
Modified: 2014-04-09 07:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (29.96 KB, text/x-log)
2014-04-07 14:33 UTC, Geron
Details
profiling snapshot (after 2 or 3 minutes of profiling) (401.60 KB, application/octet-stream)
2014-04-07 14:37 UTC, Geron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geron 2014-04-07 14:33:49 UTC
Created attachment 146606 [details]
messages.log

It takes about 1.5-2 hours to open the project (PHP) every time I start NetBeans. The project is somewhat big (almost 2 Gb of size and tens of thousands of files) and its source folder is on sshfs mounted drive.

Mounting the source folder to another location, deleting and creating the project  in NetBeans again didn't help.

I did not experience this problem in NetBeans 7.3.1.


Product Version         = NetBeans IDE 8.0 (Build 201403101706) (#b8e35b888b3f)
Operating System        = Linux version 3.8.0-35-generic running on amd64
Java; VM; Vendor        = 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70; Oracle Corporation
Runtime                 = Java(TM) SE Runtime Environment 1.8.0-b132
Java Home               = /opt/jdk/jdk1.8.0/jre
System Locale; Encoding = ru_RU (nb); UTF-8
Comment 1 Geron 2014-04-07 14:37:57 UTC
Created attachment 146607 [details]
profiling snapshot (after 2 or 3 minutes of profiling)
Comment 2 Tomas Mysik 2014-04-09 06:16:44 UTC
(In reply to Geron from comment #0)
> its source folder is on sshfs mounted drive.

This will always be slow and there is no way around it, sorry.

The change in NB 7.4 (and 8.0 of course) is that we need to listen on all source files in order to provide proper support for HTML5 features - and this simply cannot be fast on network drives. The workaround is to use a local drive (and any SCM, of course).

Thanks for reporting.

*** This bug has been marked as a duplicate of bug 242143 ***
Comment 3 Geron 2014-04-09 07:47:58 UTC
Thank you for your reply. Unfortunately, not every project can be developed locally.

Actually, there is one inconvenient but effective workaround. Just unmount the source folder before you start NetBeans and mount it again after the empty project is loaded. Then click on the "Refresh folder" item in the project context menu. This will work even better if you have ScanOnDemand plugin installed.

Hope this will help those who are also struggling with this new behaviour of NetBeans.