Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot tomcat threadpool configuration

Tags:

spring-boot

We are using Spring Boot version - spring-boot-starter-tomcat-1.4.3.RELEASE.

We are trying to find the max-threads configuration for the embedded tomcat, but in vain.

We could not find any server.xml inside the Spring Boot jar file. Neither could we print the max-threads property - which always returns null.

How can I find out the max-threads configured in the embedded tomcat for Spring Boot 1.4.3? How can I set the max-threads? Does Spring Boot 1.4.3 use NIO?

like image 717
Narendra Naidu Avatar asked Oct 20 '25 14:10

Narendra Naidu


1 Answers

The default value for max-threads is 200. From the tomcat docs

You can set it using the property

server.tomcat.max-threads=<your value> # Maximum amount of worker threads.

From the spring-boot docs

like image 160
pvpkiran Avatar answered Oct 22 '25 03:10

pvpkiran