nginx 集群,sesion共享 (ip_hash;);
tomcat 内存加大 catalina.sh
(JAVA_OPTS="-server -Xms2048M -Xmx2048M -Xss512k -Xmn512m -XX:PermSize=128M -XX:MaxPermSize=512M -Djava.awt.headless=true"),
线程连接数加大( <Connector port="8081"
protocol="org.apache.coyote.http11.Http11NioProtocol"
processorCache="1000"
connectionTimeout="20000"
redirectPort="8444"
URIEncoding="UTF-8"
minSpareThreads="25"
enableLookups="false"
disableUploadTimeout="true"
acceptCount="1000"
maxThreads="1000"
/>)
nginx 放静态页面图片,css,js,tomcat执行动态请求
原文地址:http://7408089.blog.51cto.com/7398089/1632294