Yes, as per the Lucene performance standards use only one IndexSearcher instance is true. But i am using the Lucene with Berkeley DB JE as a datastore in the EJB. So while exiting from the Sesssion Bean i am closing Berkeley DB JE connections as per the EJB standards. Which internally closes the JEDirectory, and it causes the IndexSearcher unavailable for the next request.
My question is how to retain the IndexSearcher as a resuable instance ? Otis Gospodnetic wrote: > > Hello - opening a new IndexSearcher for every request is not the thing to > do. Reuse a single IndexSearcher instance. This must be in the FAQ. :) > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > ----- Original Message ---- >> From: techkatta <[EMAIL PROTECTED]> >> To: java-user@lucene.apache.org >> Sent: Monday, February 18, 2008 10:19:04 AM >> Subject: Lucene in EJB enviornment >> >> >> I am using the Lucene in the EJB enviornment with Berkeley DB JE as a >> data >> store using the JCA on JBoss 4.2.0 >> >> My question is using Lucene in EJB enviornment is suggestable or not ? >> >> For every request i am trying to open the IndexSearcher object and while >> exiting from the EJb i am closing. It's giving OutOfMemory issues in the >> production server after 2 to 3 hrs running. >> >> Can anybody the suggest the soultion for the above probelm ? >> >> Thanks, >> techkatta >> >> >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/Lucene-in-EJB-enviornment-tp15546759p15546759.html >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Lucene-in-EJB-enviornment-tp15546759p15560506.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]