1. springcloud startup error
java.lang.IllegalStateException: availableProcessors is already set to [1], rejecting [1]
The netty of Es is not compatible with the Netty service itself
Solution
@SpringBootApplication
public class Application {
public static void main(String[] args) {
// 设置环境变量,解决Es的netty与Netty服务本身不兼容问题
System.setProperty("es.set.netty.runtime.available.processors","false");
SpringApplication.run(Application.class, args);
}
}