首页 > 编程语言 > 详细

Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: availableProcessors is already set to [8], rejecting [8]

时间:2019-12-11 22:33:32      阅读:1616      评论:0      收藏:0      [点我收藏+]

项目环境:

springboot+ES6.4.2+redis

出错信息截图如下

技术分享图片

 

 百度查了一下,大概意思是redis和elasticsearch有冲突。

 

解决方法:

启动类main方法中加入

System.setProperty("es.set.netty.runtime.available.processors","false");

如果是单元测试,需这样加:

技术分享图片

Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: availableProcessors is already set to [8], rejecting [8]

原文:https://www.cnblogs.com/lfyu/p/12025310.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!