톰캣 튜닝
톰캣 튜닝에는 여러가지 방법이 있을 것이다.
그중에 힙과 메소드를 늘리는 방법을 알아보자!
bin/catalina.sh
eval exec "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="\"$JAVA_ENDORSED_DIRS\"" -classpath "\"$CLASSPATH\"" \
-Djava.security.manager \
-Djava.security.policy=="\"$CATALINA_BASE/conf/catalina.policy\"" \
-Dcatalina.base="\"$CATALINA_BASE\"" \
-Dcatalina.home="\"$CATALINA_HOME\"" \
-Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \
-Dspring.profiles.active=real \ : spring boot profiles
-Djava.awt.headless=true \
-Dfile.encoding=UTF-8 \
-server -Xms1024m -Xmx1024m \
org.apache.catalina.startup.Bootstrap "$@" start
conf/server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8" maxThreads="250"/> default는 200개!