参考官方网站
https://tomcat.apache.org/tomcat-9.0-doc/config/index.html
1、在server.xml中添加配置
在service标签内添加
<Executor name="tomcatThreadPool" namePrefix="tomcatThreadPool-" maxThreads="1000" maxIdleTime="30000" minSpareThreads="200"/> <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="10000" redirectPort="8443" minProcessors="5" maxProcessors="75" acceptCount="1000"/>