在server.xml 修改如下
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs/log"
prefix="localhost_access_log" suffix=".log"
pattern=""%{X-FORWARDED-FOR}i"client":"%h", "client user":"%l", "authenticated":"%u", "access time":"%t", "method":"%r", "status":"%s", "send bytes":"%b", "Query?string":"%q", "partner":"%{Referer}i", "Agent version":"%{User-Agent}i"" />
在catalina.sh 添加 JAVA_OPTS="-server -Xms4096m -Xmx4096m -XX:PermSize=256M -XX:MaxNewSize=512m -XX:MaxPermSize=512m -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom" 最后一句是优化tomcat 启动速度