<Listener className="org.apache.catalina.security.SecurityListener" checkedOsUsers="root" />
#API 서버
<Connector port="8080" protocol="HTTP/1.1"
acceptCount="10"
minSpareThreads="25"
maxThreads="100"
maxPostSize="52428800"
maxConnection="8192"
maxKeepAliveRequests="-1"
enableLookups="false"
disableUploadTimeout="true"
compression="off"
tcpNoDelay="true"
connectionTimeout="5000"
URIEncoding="UTF-8"
redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
useBodyEncodingForURI="true"
enableLookups="false"
maxKeepAliveRequests="-1"
minProcessors="150"
maxProcessors="500" />
catalina.sh - catalina.out 로그 관련 설정
org.apache.catalina.startup.Bootstrap "$@" start >> /dev/null 2>&1 &
org.apache.catalina.startup.Bootstrap "$@" start \
2>&1 "&" | /usr/local/sbin/cronolog "$CATALINA_BASE"/logs/out/catalina.out.%Y-%m-%d >> /dev/null 2>&1 &
setenv.sh - 설정
#!/bin/sh
CATALINA_OPTS="-d64 -server -Xmx1024m -Xms1024m
-XX:NewSize=128m -XX:MaxNewSize=384m
-verbose:gc -Xloggc:$CATALINA_HOME/logs/gc.log
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+CMSParallelRemarkEnabled
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
-XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=$CATALINA_HOME/logs
-XX:OnOutOfMemoryError=$CATALINA_HOME/bin/stop.sh
-XX:OnOutOfMemoryError=$CATALINA_HOME/bin/start.sh"
#CATALINA_OPTS="$CATALINA_OPTS -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EventPortSelectorProvider"
'최신기술 포스팅 링크' 카테고리의 다른 글
SpringBoot MultiparFile 링크 모음 (0) | 2020.12.30 |
---|---|
jenkins pipeline youtube (0) | 2020.12.30 |
Redis 성능 향상을 위한 Redis 세션 저장소와 캐시 저장소의 분리 (0) | 2020.12.30 |
[개인보관용]Redis 연구 (2) | 2017.12.06 |
[개인보관용]Netty 연구 (0) | 2017.12.06 |
[개인보관용]Nginx 연구 (0) | 2017.12.06 |
[개인보관용]ELK 스택 연구 (0) | 2017.12.06 |
[개인보관용]톰캣 튜닝 및 서버 부하테스트 참조 링크 (0) | 2017.12.06 |