在server.xml中配置,
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8011" protocol="org.apache.coyote.ajp.AjpProtocol" redirectPort="8443"
executor="tomcatThreadPool"
connectionTimeout="30000"
URIEncoding="UTF-8"
enableLookups="false"
backlog="500"
/>
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="500" minSpareThreads="50"/>