Reputation: 403
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?
Upvotes: 4
Views: 15491
Reputation: 27048
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
Upvotes: 6
Reputation: 2279
for configuring that you will change application config in (application.yml or prop) like this
server.tomcat.max-threads=12
Upvotes: 0