项目调优
作为一名工程师,项目调优这事,是必须得熟练掌握的事情。在 Spring Boot 项目中,调优主要通过配置文件和配置JVM的参数的方式进行。
1. 修改配置文件
关于修改配置文件 application.properties,推荐《Spring Boot 项目详细的配置文件修改文档》
https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html#common-application-properties
其中比较重要的有:
server.tomcat.max-connections=0 # Maximum number of connections that the server accepts and processes at any given time.
server.tomcat.max