You’re probably OK, but why risk it? Setting the ulimits that high doesn’t really negatively impact much of anytyhing. Leaving them low leaves you open to problems in future.
I see no reason to keep them low, even in this situation. Best, Erick > On Jul 14, 2020, at 5:10 PM, Ali Akhtar <ali@ali.actor> wrote: > > If you cache the IndexSearcher and only have a couple of segments, and it’s > a read only system (indexing is done just once), would it still open a lot > of files? > > On Tue, 14 Jul 2020 at 7:05 PM, Erick Erickson <erickerick...@gmail.com> > wrote: > >> At least 65K. Yes, 65 thousand. Ditto for processes. >> >>> On Jul 14, 2020, at 8:35 AM, Archana A M <archana.am...@gmail.com> >> wrote: >>> >>> Dear Team, >>> >>> We are getting "too many open files" in server while trying to access >>> apache Lucene cache. >>> >>> Could someone please suggest the recommended open file limit while using >>> apache Lucene in the application. >>> >>> Please find the relevant details below >>> >>> Lucene version - 6.5.1 >>> >>> current ulimit soft limit - 1024 >>> >>> current ulimit hard limit - 4096 >>> >>> Server - Jbosseap 7.1 >>> >>> Thanks >>> >>> Archana >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org