tomcat perfomance tunning
개요
Java VM 설정
setenv.sh
- cd tomcat
vi bin/setenv.sh
#!/bin/sh ## https://confluence.atlassian.com/display/DOC/Performance+Tuning?src=search CATALINA_OPTS="-XX:MaxPermSize=512m -server -Xss1G -Xms2G -Xmx4G -XX:+UseParallelOldGC $CATALINA_OPTS"
- chmod +x bin/setenv.sh
- tomcat 구동
AJP Connector
http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html
- maxConnections: Default NIO, 10,000, ARP/native 8192
- maxThreads: Default 200
Ref
- https://confluence.atlassian.com/display/DOC/Performance+Tuning?src=search
- http://wiki.razuna.com/display/ecp/Configure+Tomcat+for+production+deployment
- http://www.mulesoft.com/tomcat-performance
- http://terranceasnyder.com/2011/05/tomcat-best-practices/