配置tomcat的进程数控制
修改server.xml文件如下所示:
修改前: <Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" '/>
修改后: <Connector port="8080" protocol="HTTP/1.1"
maxHttpHeaderSize="8192“
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
URIEncoding="UTF-8"/>
修改前: <Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" '/>
修改后: <Connector port="8080" protocol="HTTP/1.1"
maxHttpHeaderSize="8192“
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
URIEncoding="UTF-8"/>
none