嵌入式tomcat服务器spring boot中的默认http线程池大小

时间:2021-05-31 11:12:24

标签: spring-boot tomcat

我有一个在嵌入式 tomcat 服务器上运行的 Spring Boot 应用程序。我想知道默认的tomcat http线程池大小以及如何检查它们。

检查各种门户后我知道我们可以在applications.properties文件中添加'server.tomcat.max-threads'并控制它。

但我想了解默认大小是多少以及如何找到它。

1 个答案:

答案 0 :(得分:1)

您可以找到最新 Spring Boot 版本的每个属性 here 的默认值。在本例中,属性为 server.tomcat.threads.max,默认值为 Tomcat 的默认值,即 200。