Detailed explanation of how spring boot optimizes the embedded Tomcat example

preface

This article mainly introduces the relevant contents of spring boot optimization embedded Tomcat for your reference and learning. Let's take a look at the detailed introduction.

Spring boot beta

Spring boot uses Tomcat as the web server by default

By default, the following parameters can be configured in springboot to set the port of the embedded container tomcat, the maximum number of threads, and so on

However, the maximum number of connections cannot be set, and the maximum number of connections directly affects the performance of Tomcat. How to adjust this maximum number of connections?

There are three ways

First:

Second:

Third:

Finally, if it is found that it does not take effect, put the application Delete all the Tomcat configurations (server. *) in the properties configuration, and it's OK.

summary

The above is the whole content of this article. I hope the content of this article can bring some help to your study or work. If you have any questions, you can leave a message. Thank you for your support for programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>