indexin使用solr时打开文件异常太多 [英] Too Many open file exception while indexin using solr
本文介绍了indexin使用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)
推荐答案
文件描述符将是你你最有可能的原因。
File Descriptor will be your most likely cause.
检查你的操作系统设置的限制。并根据情况调整。 Unix上的
,查看和设置的命令是 ulimit 。
Check the limit which your operating system has set. and adjust accordingliy. on Unix, the command to view and set is ulimit.
这篇关于indexin使用solr时打开文件异常太多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文