从Spring-Boot 2.0.1升级到2.0.2后,我注意到请求处理线程名称已更改 . 此外,看起来现在有更多专用于HTTP请求处理的线程 . 经过一些实验,我可以看到在我们现在拥有的4核服务器上:
-
reactor-http-server-epoll- * - 处理传入HTTP请求的4个线程 .
-
reactor-http-client-epoll- * - 处理来自WebCLient的响应的4个线程
-
reactor-http-nio- * - 4个空闲线程
使用Spring Boot 2.0.1我记得只有4个reactor-http-nio- *线程负责处理传入请求和WebClients响应 - https://docs.spring.io/spring/docs/5.0.6.RELEASE/spring-framework-reference/web-reactive.html#webflux-concurrency-model .
-
我的发现有效吗?
-
这种变化背后的原因是什么?
-
reactor-http-nio- *线程的工作现在是什么?