tomcat/catalina.sh --内存优化 配置方式:在tomcat/catalina.sh中加入下面的配置 JAVA_OPTS="-server -Xms512m -Xmx512m -Xss1024K -XX:PermSize=64m -XX:MaxPermSize=128m"
JAVA_HOME=/root/jdk1.8.0_131
CATALINA_HOME=/root/apache-tomcat-8.5.13
JVM虚拟机的启动配置 bin/catalina.sh --并发优化 配置方式:在tomat/conf/server.xml配置如下 <Connector port="8080" protocol="HTTP/1.1"
maxThreads="500" minSpareThreads="100" enableLookups="false" URIEncoding="utf-8"
acceptCount="500" connectionTimeout="20000" disableUploadTimeout="ture" redirectPort="8443"/
|