lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wilton, Reece" <>
Subject Multiple reads from an IndexSearcher?
Date Wed, 10 Sep 2003 01:03:12 GMT

I have a single IndexSearcher pointing at an index.  Multiple threads
are calling the search method.  Is this safe to do?  I presume it is the
right way to do it instead of creating a new IndexSearcher per thread.

But I'm having the dreaded "Too many open files" exception.  I'm running
on Windows XP (of course, otherwise it would work!).  Any ideas on how
to fix this (other than upgrading to Linux)?  Is having one
IndexSearcher the right thing to do?  No other processes are accessing
this index so I'm surprised that I'm getting this error.

Here's the exception:

*E,17:25:19.649,/HyphenTest 5> Too many open files
*E,17:25:19.664,/HyphenTest 5> 	at Method)
*E,17:25:19.664,/HyphenTest 5> 	at
*E,17:25:19.664,/HyphenTest 5> 	at$1.obtain(
*E,17:25:19.664,/HyphenTest 5> 	at
*E,17:25:19.664,/HyphenTest 5> 	at$
*E,17:25:19.664,/HyphenTest 5> 	at
*E,17:25:19.664,/HyphenTest 5> 	at
*E,17:25:19.664,/HyphenTest 5> 	at<init>(

Any help/advice is appreciated,

View raw message