Re: old fashioned....."Too many open files"!

2012-05-18 Thread Michel Blase
now why it happens and this would confirm >> or >> eliminate one possible cause. >> >> > -Original Message- >> > From: Michel Blase [mailto:mblas...@gmail.com] >> > Sent: Friday, May 18, 2012 1:49 PM >> > To: java-user@lucene.apache.org >&

Re: old fashioned....."Too many open files"!

2012-05-18 Thread Michel Blase
l Blase [mailto:mblas...@gmail.com] > > Sent: Friday, May 18, 2012 1:49 PM > > To: java-user@lucene.apache.org > > Subject: Re: old fashioned."Too many open files"! > > > > but commit after each insert should be really expensive and > > unneces

RE: old fashioned....."Too many open files"!

2012-05-18 Thread Edward W. Rouse
this would confirm or eliminate one possible cause. > -Original Message- > From: Michel Blase [mailto:mblas...@gmail.com] > Sent: Friday, May 18, 2012 1:49 PM > To: java-user@lucene.apache.org > Subject: Re: old fashioned."Too many open files"! > > but

Re: old fashioned....."Too many open files"!

2012-05-18 Thread Michel Blase
riginal Message- > > From: Michel Blase [mailto:mblas...@gmail.com] > > Sent: Friday, May 18, 2012 1:24 PM > > To: java-user@lucene.apache.org > > Subject: Re: old fashioned."Too many open files"! > > > > also.my problem is indexing! > > &g

RE: old fashioned....."Too many open files"!

2012-05-18 Thread Edward W. Rouse
ubject: Re: old fashioned."Too many open files"! > > also.my problem is indexing! > > Preparation: > > private void SetUpWriters() throws Exception { > Set set = IndexesPaths.entrySet(); > Iterator i = set.iterator(); > > while(i

Re: old fashioned....."Too many open files"!

2012-05-18 Thread Michel Blase
also.my problem is indexing! Preparation: private void SetUpWriters() throws Exception { Set set = IndexesPaths.entrySet(); Iterator i = set.iterator(); while(i.hasNext()){ Map.Entry index = (Map.Entry)i.next(); int id = (Integer)index.getKey()

Re: old fashioned....."Too many open files"!

2012-05-18 Thread Chris Hostetter
: the point is that I keep the readers open to share them across search. Is : this wrong? your goal is fine, but where in your code do you think you are doing that? I don't see any readers ever being shared. You open new ones (which are never closed) in every call to getSearcher() : > >

Re: old fashioned....."Too many open files"!

2012-05-18 Thread Michel Blase
Thanks Ian, the point is that I keep the readers open to share them across search. Is this wrong? On Fri, May 18, 2012 at 9:58 AM, Ian Lea wrote: > You may need to cut it down to something simpler, but I can't see any > reader.close() calls. > > > -- > Ian. > > > On Fri, May 18, 2012 at 5:47 P

Re: old fashioned....."Too many open files"!

2012-05-18 Thread Ian Lea
You may need to cut it down to something simpler, but I can't see any reader.close() calls. -- Ian. On Fri, May 18, 2012 at 5:47 PM, Michel Blase wrote: > This is the code in charge of managing the Lucene index. Thanks for your > help! > > > > package luz.aurora.lucene; > > import java.io.File

Re: old fashioned....."Too many open files"!

2012-05-18 Thread Michel Blase
This is the code in charge of managing the Lucene index. Thanks for your help! package luz.aurora.lucene; import java.io.File; import java.io.IOException; import java.util.*; import luz.aurora.search.ExtendedQueryParser; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analy

Re: old fashioned....."Too many open files"!

2012-05-17 Thread findbestopensource
Post complete code. You are not closing the objects (IndexWriter / Index Searcher) properly. Regards Aditya www.findbestopensource.com On Fri, May 18, 2012 at 6:51 AM, Michel Blase wrote: > Hi all, > > I have few problems Indexing. I keep hitting "Too many open files". It > seems like Lucene i