728x90
반응형

<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"



728x90
반응형
블로그 이미지

nineDeveloper

안녕하세요 현직 개발자 입니다 ~ 빠르게 변화하는 세상에 뒤쳐지지 않도록 우리모두 열심히 공부합시다 ~! 개발공부는 넘나 재미있는 것~!

,