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.
trunk build from Apr 18, JDK 1.5.0, Linux I have a project setup with most of NetBeans projects + bunch of J2SE project, after large update (Jesse's changes) my IDE fails to start because it cannot get new file descriptors. The listing shows that there are many FDs held by deleted MDR files.
Created attachment 21695 [details] listing of file descriptors
Created attachment 21889 [details] another listing
Created attachment 21890 [details] first set of exceptions
I still have this problem. Once the mounting fails the IDE becomes unusable because it tries to another attempts to mount the same file.
The problem with running out of file descriptors does not happen only if you update the projects which you already had opened, but also if you simply start with fresh userdir and open too many projects (nb_all/nbbuild project with all the required projects). At classpath scanning all 1024 file descriptors are eaten. MDR should not keep that many files open. It should close files and open them only as needed. Currently there is only one workaround - increase the number of allowed file descriptors, see FAQ item at http://wiki.java.net/bin/view/Netbeans/FaqOutOfFileDescriptors
*** Issue 59918 has been marked as a duplicate of this issue. ***
Could close & reopen files, or try to merge contents of various files into larger files, if that is possible. Currently there are three files created per source root, which seems excessive. For example, my $userdir/var/cache/mdrstorage/org-netbeans-java/0.66/ dir has 476 files in it right now, and that's without having opened most NB modules as far as I can recall.
Yes, 3 permanent files per CP element, one temporary (the backup file) that is only present during the IDE runtime (if the IDE is shutdown correctly). 2-3 files per extent are open during IDE run. Merging the files would be too complicated at this point. We will try to keep the number of open files constant and close/reopen files as needed.
*** Issue 62154 has been marked as a duplicate of this issue. ***
I'll look at it.
Fixed. Number of FD's held by MDR is now limited to 200. Checking in src/org/netbeans/mdr/persistence/btreeimpl/btreestorage/FileCache.java; /cvs/mdr/src/org/netbeans/mdr/persistence/btreeimpl/btreestorage/FileCache.java,v <-- FileCache.java new revision: 1.8; previous revision: 1.7 done Checking in src/org/netbeans/mdr/persistence/btreeimpl/btreestorage/LogFile.java; /cvs/mdr/src/org/netbeans/mdr/persistence/btreeimpl/btreestorage/LogFile.java,v <-- LogFile.java new revision: 1.4; previous revision: 1.3 done
> Number of FD's held by MDR is now limited to 200. Good. Anyway, why 200? Could this be set to something like 20 without sacrificing performance? When you run tens of instances of Netbeans on a server (e.g. SunRay server) it would save resources...