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 189156 - java.io.FileNotFoundException: /home/tejasn/.netbeans/6.9/var/cache/index/s986/java/14/refs/_0.tis (Too many open files)
Summary: java.io.FileNotFoundException: /home/tejasn/.netbeans/6.9/var/cache/index/s98...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 11:04 UTC by tejas.nevrekar
Modified: 2010-11-05 08:04 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 46292


Attachments
stacktrace (4.20 KB, text/plain)
2010-08-03 11:04 UTC, tejas.nevrekar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tejas.nevrekar 2010-08-03 11:04:25 UTC
Build: NetBeans IDE 6.9 (Build 201006101454)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux

User Comments:
pbadams: Deleting a migration file after a mercurial push and merge

pbadams: Deleting a migration file after a mercurial push and merge

pbadams: Deleting a DB migration file




Stacktrace: 
java.io.FileNotFoundException: /home/tejasn/.netbeans/6.9/var/cache/index/s986/java/14/refs/_0.tis (Too many open files)
   at java.io.RandomAccessFile.open(RandomAccessFile.java:0)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
   at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:639)
   at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:442)
   at org.apache.lucene.index.TermInfosWriter.initialize(TermInfosWriter.java:98)
   at org.apache.lucene.index.TermInfosWriter.<init>(TermInfosWriter.java:83)
Comment 1 tejas.nevrekar 2010-08-03 11:04:28 UTC
Created attachment 101160 [details]
stacktrace
Comment 2 Jaroslav Tulach 2010-08-17 14:04:27 UTC
You should probably catch the exception and close some other indexes before re-trying.

I will try to add some diagnostic for /proc/<pid>/fd/ for bug 188923, the same code could be useful here too.
Comment 3 Tomas Zezula 2010-11-05 08:04:36 UTC
The number of opened index files was decreased by RAM caching.
Fixed jet-main e8f93be3c8c6