What is the default queue size for apache tomcat in spring boot?

Viewed 322

What is the default request queue size in apache tomcat which is embedded in spring boot ?

2 Answers

As of spring boot version 2.7.2, this is set to 100 by default. You can use the following property to change it:

server.tomcat.accept-count=100

According to the documentation this is used to specify:

Maximum queue length for incoming connection requests when all possible request processing threads are in use.

To check for the version you're using, you can try replacing the version in this url & searching for acceptCount.

The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full will be refused. In Spring Boot, we can define the maximum amount of Tomcat worker threads are 200. You may specify this property in your application.properties as follows.

server.tomcat.max-threads=200
Related