项目场景:

项目用到ES 存储日志数据,


问题描述

程序使用RestHighLevelClient客户端,经常出现Request cannot be executed; I/O reactor status: STOPPED ,网上查找到原因大多是因为手动调用close()


原因分析:

查询出现异常前后的日志,发现前一天晚上有出现过OOM,第二天应用与查询ES相关的操作全部异常,怀疑因为OOM导致client 关闭,

为了验证猜测,写了个简单的测试用例,程序出现OOM后,休眠15秒,释放内存,继续调用client查询ES,抛出Request cannot be executed; I/O reactor status: STOPPED

​​​​​​​

     List<MyCustomer> list = new ArrayList<>();new Thread(new Runnable() {@Overridepublic void run() {while(true){list.add(new MyCustomer());}}}).start();esTest.authLogTest();Thread.sleep(15000);list.clear();

解决方案:

优化导致OOM的代码

关于ES Request cannot be executed; I/O reactor status: STOPPED 异常原因查找相关推荐

  1. ES 查询时报错 I/O 异常: Request cannot be executed; I/O reactor status: STOPPED

    问题: ES 查询时报错 I/O 异常: java.lang.IllegalStateException: Request cannot be executed; I/O reactor status ...

  2. Request cannot be executed; I/O reactor status: STOPPED

    使用ES报错: java.lang.RuntimeException: Request cannot be executed; I/O reactor status: STOPPED     at o ...

  3. Java访问Elasticsearch报错Request cannot be executed; I/O reactor status: STOPPED

    简介 使用ES过程中遇到一个Request cannot be executed; I/O reactor status: STOPPED 的异常,大概意思是和server端的连接异常终止了.开始以为 ...

  4. 【Elasticsearch】Request cannot be executed;I/O reactor status :STOPPED.

    1.概述 转载:https://bbs.huaweicloud.com/forum/thread-70234-1-1.html 我也曾经遇到这个错误,但是忘记记录了,现在转载记录 多线程并发写入ES时 ...

  5. 记一次错误:java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED

    这两天测试给提了个BUG,具体现象是:调用es查询数据的接口进行过一次查询,过几分钟之后再次用这个接口进行查询就不行了,日志抛错堆栈如下: java.lang.IllegalStateExceptio ...

  6. [正解]异常信息:java.lang.RuntimeException: Request cannot be executed; I/O reactor status: STOPPED

    笔者,从事大型项目监控设计流程,有一次需要将ES整合到项目中,ELK的那一套日志作为用户接口的调用基础,类似于采集.清洗.转换.存储. 刚开始设计代码及流程,之后把代码进行优化抽取,封装client等 ...

  7. ElasticSearch:Request cannot be executed; I/O reactor status: STOPPED

    项目场景: 项目添加Elasticsearch7.8统计部分 2020年10月10日部署到测试环境 10月14日突然报错 问题描述: java.lang.RuntimeException: Reque ...

  8. Nacos 报错:Request cannot be executed; I/O reactor status: STOPPED

    报错信息 Nacos集群报错如下: 2021-07-13 16:21:56,363 ERROR [IP-DEAD] failed to delete ip automatically, ip: {&q ...

  9. java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED

    es7.3.2 运行时候java 客户端报错如下: java.lang.RuntimeException: Request cannot be executed; I/O reactor status ...

最新文章

  1. 修改注册表真正的提高网速
  2. Python 2.7 学习笔记 内置语句、函数、标准库
  3. urllib2使用总结
  4. Java机器学习库ML之三Sampling(采样)
  5. 5、MySQL修改数据库:ALTER DATABASE用法简介
  6. 现代程序设计 作业9 - 综合练习
  7. python画圆并填充图形颜色_python turtle我想用五种颜色画五个圆,并且用画圆周的颜色填充,老是出问题,怎么回事,怎么修改?:python颜色代码...
  8. 测开之路十六:@classmethod与@staticmethod
  9. GIGO1.1数据清洗利器,文献计量同义词合并
  10. 整人BAT\VBS代码 自创
  11. 平面设计如何才能自学会?需要掌握什么技能?
  12. 注意力机制attention图解
  13. 百度网盘加速下载方法——系统自带的提速模式和积分模式区别
  14. 零基础数据挖掘入门-二手车价格预测part(一):EDA-数据探索性分析
  15. air202-DTU接入ONENET平台简单教程
  16. PHP下载文件的正确方式
  17. 天津春季高考历年计算机考试卷,最新春季高考历年真题-天津市春季高考语文试卷...
  18. OpenCV的图像直角坐标系转极坐标系的函数warpPolar()详解,并附自己写的实现直角坐标系转极坐标系的MATLAB代码
  19. Python3.6 新特性f-string
  20. 《看聊天记录都学不会C语言?太菜了吧》(6)编程很难吗?差一点就学不会了呢!

热门文章

  1. 一个简单的支付系统设计
  2. VAO, VBO, EBO的创建顺序和解绑顺序
  3. OpenGL缓冲区对象之EBO
  4. python中change的用法_Python Pandas dataframe.pct_change()用法及代码示例
  5. 2015年最具潜力的十大微信公众号
  6. AI 美甲生成器|训练笔记
  7. Ubuntu rc.local 的开启与配置
  8. ShopNum1网店系统:组建电子商务运营团队
  9. win7用计算机名无法访问局域网,win7访问不了局域网怎么办_win7系统电脑无法访问局域网怎么办-win7之家...
  10. matlab4fsk软件解调代码,4fsk调制与解调基于Verilog HDL语言