使用 solr 进行索引时打开文件过多异常 [英] Too Many open file exception while indexin using solr

查看:23
本文介绍了使用 solr 进行索引时打开文件过多异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 SOLR 为我的 Web 应用程序中的文档编制索引,solr.war 部署在 jboss 服务器上.但是在索引时我收到太多文件打开异常.以下是一些异常堆栈跟踪:

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 is some of exceptions stack trace:

12:31:33,267 ERROR [STDERR] Exception in thread "Lucene Merge Thread #0"
12:31:33,267 ERROR [STDERR] org.apache.lucene.index.MergePolicy$MergeException: java.io.FileNotFoundException: /data/jbossesb/bin/solr/data/index/_2rw.prx (Too many open files)
12:31:33,267 ERROR [STDERR] at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:351)
12:31:33,267 ERROR [STDERR] at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:315)
12:31:33,267 ERROR [STDERR] Caused by: java.io.FileNotFoundException: /data/jbossesb/bin/solr/data/index/_2rw.prx (Too many open files)
12:31:33,267 ERROR [STDERR] at java.io.RandomAccessFile.open(Native Method)

推荐答案

文件描述符您最可能的原因.

检查您的操作系统设置的限制.并相应调整.在 Unix 上,查看和设置的命令是 ulimit.

Check the limit which your operating system has set. and adjust accordingliy. on Unix, the command to view and set is ulimit.

这篇关于使用 solr 进行索引时打开文件过多异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆