Too Many open file exception while indexin using solr

前端 未结 4 1573
一生所求
一生所求 2021-02-06 19:10

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

相关标签:
4条回答
  • 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.

    0 讨论(0)
  • 2021-02-06 19:30

    As explained in this SOLR Jira, you can try the following options:

    • increasing your ulimit using: ulimit -n 1000000
    • set useCompoundFile to true in solrconfig.xml to use Lucene's compound file format
    • use a lower mergeFactor which will result in fewer segments and hence fewer open files.
    0 讨论(0)
  • 2021-02-06 19:31

    Optimize the index. It probably has too many segments.

    0 讨论(0)
  • 2021-02-06 19:34

    Also try reducing the merge factor

    0 讨论(0)
提交回复
热议问题