Error opening new searcher. exceeded limit of maxWarmingSearchers

2013-12-16 | 所属分类:solr maxWarmingSearchers

ERROR org.apache.solr.core.SolrCore  – org.apache.solr.common.SolrException:
 Error opening new searcher. exceeded limit of maxWarmingSearchers=2, try again later.
  at solr.core.SolrCore.getSearcher(SolrCore.java:1620)
  at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1400)                      
  at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:582)        
  at org.apache.solr.update.processor.RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:95) 
  at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:64)
  at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalCommit(DistributedUpdateProcessor.java:1240)
  at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1219)
  at org.apache.solr.update.processor.LogUpdateProcessor.processCommit(LogUpdateProcessorFactory.java:157) 
  at org.apache.solr.handler.RequestHandlerUtils.handleCommit(RequestHandlerUtils.java:69)             
  at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:68)
  at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)         
  at org.apache.solr.core.SolrCore.execute(SolrCore.java:1904)                                
  at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:659)

原因:
     Solr每次提交时,都会新打开一个searcher,打开searcher花费时间可能较长,在这打开的过程中,假如又有新的提交,又会导致打开新searcher,
  当这些新的searcher(未准备好的)的数量超过SolrConfigXml 中配置maxWarmingSearchers时,就会报该错误。
  maxWarmingSearchers配置的是同时可以存在的、未准备好的searcher的个数。
 解决方法有两种:
1、把maxWarmingSearchers配置大一点。(需要系统有足够的RAM和CPU等,比较危险)
2、较少提交的频率(推荐)

如果这种情况只是偶尔出现,那么可以不处理它。
                                                                                                                                                                     
详细见 http://wiki.apache.org/solr/FAQ

What does "exceeded limit of maxWarmingSearchers=X" mean?

Whenever a commit happens in Solr, a new "searcher" (with new caches) is opened, "warmed" up according to your SolrConfigXml settings, and then put in place.
  The previous searcher is not closed until the "warming" search is ready.
  If multiple commits happen in rapid succession -- before the warming searcher from first commit has enough time to warm up,
  then there can be multiple searchers all competeing for resources at the same time, even htough one of them will be thrown away as soon as the next one is ready.

maxWarmingSearchers is a setting in SolrConfigXml that helps you put a safety valve on the number of overlapping warming searchers that can exist at one time.
 If you see this error it means Solr prevented a commit from resulting an a new searcher being opened because there were already X warming searchers open.

If you encounter this error a lot, you can (in theory) increase the number in your maxWarmingSearchers,
 but that is risky to do unless you are confident you have the system resources (RAM, CPU, etc...) to do it safely.
  A more correct way to deal with the situation is to reduce how frequently you send commits.

If you only encounter this error infrequently because of fluke situations, you\'ll probably be ok just ignoring it.

Solr Error opening new searcher相关推荐

  1. Solr报错Error opening new searcher write.lock: Too many open files

    1.在使用时查看到报以下错误信息: org.springframework.web.util.NestedServletException: Request processing failed; ne ...

  2. 灾备克隆后solr启动失败:org.apache.solr.common.SolrException: Error opening new searcher

    出现该问题的原因是因为要做灾备系统,故克隆了正式环境服务器,按理来说文件及环境都是一模一样的,但是就是启动报错,查了文件权限,最后把tomcat整个赋权也不管用,让人头疼的一批.搞了两天,也没个思路, ...

  3. SolrException: Index locked 和 Error opening new searcher 最终解决方案(找了好久才解决)

    一.错误信息 SolrCore Initialization Failures org.apache.solr.common.SolrException:org.apache.solr.common. ...

  4. 【错误记录】Android 文件查看错误 ( Error opening contents of device file ““: Cannot create directory )

    文章目录 一.报错信息 二.解决方案 一.报错信息 Error opening contents of device file "hello.txt": Cannot create ...

  5. 试用版office 2010中提示Error opening SocialConnectorRes.dll求解!!

    试用版office 2010中提示Error opening C:\Program Files\Microsoft Office\Office14\2052\SocialConnectorRes.dl ...

  6. Error opening zip file or JAR manifest missing的解决方法

    错误描述: MyEclipse中启动Tomcat(debug)的时候就出现Error starting Tomcat : A configuration error occured during st ...

  7. Error opening/initializing the selected video_out (-vo) device.

    mplayer error opening/initializing the selected video_out (-vo) device ubuntu的Mplayer老是出现这样的错误. Erro ...

  8. Error opening terminal: xterm-256color

    在使用gdb调试linux内核时,提示如下错误: arm-none-linux-gnueabi-gdb --tui vmlinux Error opening terminal: xterm-256c ...

  9. 一起来玩树莓派--解决复制文件时出现error opening file... permission denied问题

    解决复制文件时出现error opening file"..." permission denied问题 问题描述 解决方法 问题描述 想用U盘给树莓派传一些U盘过去,但是U盘插进 ...

最新文章

  1. Spring Boot 集成测试
  2. Spark-sql:以编程方式执行Spark SQL查询(通过反射的方式推断出Schema,通过StrutType直接指定Schema)
  3. mysql挂载数据卷_记一次生产数据库数据文件进行分区转移
  4. odbc驱动程序管理器连接未打开_Windows 10 怎么修复 Windows 中的 Wi-Fi 连接问题,我教你...
  5. 征稿通知!ICCV 2021 第一届面向意图表达的手绘草图研讨会
  6. C语言中全局变量和局部变量,作用域与生命周期的相关问题。
  7. viper4android百度云盘,【图片】打造安卓最强音效,ViPER4Android【西南模范吧】_百度贴吧...
  8. WEB SERVER调优
  9. 转载:CSDN mvc ef 的简单增删改查操作
  10. FreeRTOS 教程指南 学习笔记 第三章 任务管理(二)
  11. Cocos Creator 如何在 VideoPlayer 上面放置 UI 控件
  12. android小米便签源代码分析,小米开源便签Notes-源码研究(1)-导出功能整体思路
  13. python的hello world
  14. Epic League 推出支持 Free to Earn 的 RPG 游戏 Dark Throne
  15. 如何在Ubuntu 20.04上安装和使用TimescaleDB
  16. 软考-中级-网络工程师-笔记-第1章-计算机网络概论
  17. DPDK在DPVS中的应用及原理分析
  18. 「三代组装」Pacbio组装后如何用自身数据进行polish
  19. Windows10 中的字母映射表
  20. 【特征工程概要】解释什么是特征,特征工程的步骤

热门文章

  1. 新老“三论”简介及“远望信息系统管理体系”的框架
  2. 【01 Tomcat 学习】
  3. 【Tomcat】——纯手写实现一个简单的Tomcat
  4. 在我的S5pv210 wince6.0 上做个支持硬解的wince播放器,播放1080P视频堪比android
  5. 操作系统可以装几台计算机,一台计算机怎么安装两个操作系统
  6. 海盗来了免root无限能量获取攻略
  7. 大话西游各服务器位置,大话西游手游时间服哪个区好_大话西游手游时间服哪个服务器人多_玩游戏网...
  8. java程序设计雷电游戏设计步骤_基于Java的飞机雷电射击游戏的设计任务书
  9. 【智能金融】BCG报告:智慧运营,银行业竞争的下一个决胜之地
  10. iskysoft中文版_使用iSkysoft Toolbox轻松实现iOS数据恢复:几秒钟内恢复丢失的数据...