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 230717 - Ability to ignore some folders in very big projects
Summary: Ability to ignore some folders in very big projects
Status: RESOLVED WONTFIX
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 10:55 UTC by augcampos
Modified: 2013-07-16 15:09 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter: 201158


Attachments
stacktrace (1.24 KB, text/plain)
2013-06-04 10:55 UTC, augcampos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description augcampos 2013-06-04 10:55:42 UTC
This bug was originally marked as duplicate of bug 212604, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build nbms-and-javadoc-11073-on-20130604)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
GUEST: starting netbeans (every time)

augcampos: Create a new project with several files in C++ and html5




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.openide.util.WeakSet$SharedKeyWeakHashMap.<init>(WeakSet.java:331)
   at org.openide.util.WeakSet.<init>(WeakSet.java:100)
   at org.openide.util.WeakSet.<init>(WeakSet.java:113)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.collectForRefresh(FileObjectFactory.java:491)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.refreshAll(FileObjectFactory.java:484)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory$1.run(FileObjectFactory.java:764)
Comment 1 augcampos 2013-06-04 10:55:43 UTC
Created attachment 135313 [details]
stacktrace
Comment 2 Ondrej Vrabec 2013-06-04 11:37:45 UTC
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectKeeper.listenToAll(FileObjectKeeper.java:217)
ArrayDeque contains over 520 000 files listened on. Happens when adding a recursive listener in rg.netbeans.modules.web.clientproject.ClientSideProject$OpenHookImpl.addSiteRootListener(ClientSideProject.java:568)

to augcampos: you must have a project opened configured in a really strange way, it must contain the following source root: /media/192.168.90.49 which contains a really huge amount of files. Why do you have this setup? Can you setup the project so it contains only files it really needs?
Comment 3 augcampos 2013-06-04 13:32:21 UTC
This a ssh mount of a remote machine and is a https server in c++ and a html client in javascrit (ext-js)
Comment 4 Jaroslav Havlin 2013-07-12 07:12:03 UTC
The project is really huge.
It might help to be able to set some folders as ignored (e.g. PHP project has this feature). But I'm afraid that only few users will need this.
Reassigning. Please evaluate this enhancement. Thank you.

Possible workarounds:
 - Divide the project into smaller projects
 - Increase heap size, see http://wiki.netbeans.org/FaqSettingHeapSize
 - Set ignored files and folders:
    Menu -> Tools -> Options -> Miscellaneous -> Files -> Ignored Files Pattern
Comment 5 David Konecny 2013-07-15 02:10:55 UTC
"520 000 files" indicates that project has wrong Site Root or Project Folder configured. For now this sounds more like a configuration error then an enhancement. augcampos, could you comment please? Thanks.
Comment 6 Jaroslav Havlin 2013-07-16 15:09:31 UTC
The reporter confirmed by email that the project was not configured properly, and that other projects are working fine.

Thank you for reporting and help.