tomcat perfomance tunning

개요



Java VM 설정

setenv.sh

  1. cd tomcat
  2. 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"
  3. chmod +x bin/setenv.sh
  4. 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