Maximum (client request) thread pool size in spring

前端 未结 2 1577
长发绾君心
长发绾君心 2020-12-12 17:55

I am developing application server using spring boot app but now I want to know what is the default maximum (client request) thread pool size in spring and how can I customi

相关标签:
2条回答
  • 2020-12-12 18:30

    Assuming that you're using embedded Tomcat, Spring Boot uses the server.tomcat.max-threads property to control the size of the client request thread pool. Its default value is zero which leaves Tomcat to use its default of 200.

    To customise the size of this thread pool you should specify a non-zero value for the server.tomcat.max-threads property in your application.properties or application.yml file.

    0 讨论(0)
  • 2020-12-12 18:42

    As server.tomcat.max-threads is deprecated, now use server.tomcat.threads.max in your Spring application.properties. Default is 200.

    0 讨论(0)
提交回复
热议问题