Elasticsearch启动报错java.lang.IllegalStateException: availableProcessors is already set to [4], rejecti

Elasticsearch启动报错

java.lang.IllegalStateException: availableProcessors is already set to [4], rejecting [4]

     自己百度一下,一般出现这个错误应该是引用的jar包多,冲突。看很多文章都说,在初始化之前加上System.setProperty("es.set.netty.runtime.available.processors", "false"); 

可是我写了之后依然报这个错误,于是决定换个设置方法,

在tomcat里面设置启动参数es.set.netty.runtime.available.processors

Elasticsearch启动报错java.lang.IllegalStateException: availableProcessors is already set to [4], rejecti_第1张图片

然后启动,问题解决,不报错了

你可能感兴趣的:(日常问题)