I am using SOLR for indexing documents in my web application and solr.war is deployed on the jboss server. But while indexing i am getting too many files open exception. Below i
File Descriptor will be your most likely cause.
Check the limit which your operating system has set. and adjust accordingliy. on Unix, the command to view and set is ulimit.
As explained in this SOLR Jira, you can try the following options:
ulimit -n 1000000
useCompoundFile
to true in solrconfig.xml
to use Lucene's compound file formatmergeFactor
which will result in fewer segments and hence fewer open files.Optimize the index. It probably has too many segments.
Also try reducing the merge factor