차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
tomcat.env [2019/04/30 16:23]
koov
tomcat.env [2019/04/30 16:40] (현재)
koov
줄 29: 줄 29:
 export CATALINA_HOME="/​software/​tomcat"​ export CATALINA_HOME="/​software/​tomcat"​
 export CATALINA_BASE="​$CATALINA_HOME/​servers/​$SERVER_NAME"​ export CATALINA_BASE="​$CATALINA_HOME/​servers/​$SERVER_NAME"​
 +export CATALINA_LOGS="​$CATALINA_BASE/​logs"​
 export CATALINA_OPTS="​-Denv=product -Denv.servername=$SERVER_NAME -Djava.security.egd=file:/​dev/​./​urandom"​ export CATALINA_OPTS="​-Denv=product -Denv.servername=$SERVER_NAME -Djava.security.egd=file:/​dev/​./​urandom"​
-export CATALINA_OUT="​$CATALINA_BASE/​logs/​catalina.out"​+export CATALINA_OUT="​$CATALINA_LOGS/​catalina.out"​
 export CATALINA_PID="​$CATALINA_BASE/​catalina.pid"​ export CATALINA_PID="​$CATALINA_BASE/​catalina.pid"​
 export CATALINA_TMPDIR="​$CATALINA_BASE/​temp"​ export CATALINA_TMPDIR="​$CATALINA_BASE/​temp"​
줄 52: 줄 53:
 JAVA_OPTS="​$JAVA_OPTS -Xmx1024M"​ JAVA_OPTS="​$JAVA_OPTS -Xmx1024M"​
 JAVA_OPTS="​$JAVA_OPTS -verbose:​gc"​ JAVA_OPTS="​$JAVA_OPTS -verbose:​gc"​
-JAVA_OPTS="​$JAVA_OPTS -Xloggc:$CATALINA_BASE/​logs/​gc_$DATE.log"​+JAVA_OPTS="​$JAVA_OPTS -Xloggc:$CATALINA_LOGS/​gc_$DATE.log"​
 JAVA_OPTS="​$JAVA_OPTS -XX:​+PrintGC"​ JAVA_OPTS="​$JAVA_OPTS -XX:​+PrintGC"​
 JAVA_OPTS="​$JAVA_OPTS -XX:​+PrintGCDetails"​ JAVA_OPTS="​$JAVA_OPTS -XX:​+PrintGCDetails"​
줄 58: 줄 59:
 JAVA_OPTS="​$JAVA_OPTS -XX:​+PrintHeapAtGC"​ JAVA_OPTS="​$JAVA_OPTS -XX:​+PrintHeapAtGC"​
 JAVA_OPTS="​$JAVA_OPTS -XX:​+HeapDumpOnOutOfMemoryError"​ JAVA_OPTS="​$JAVA_OPTS -XX:​+HeapDumpOnOutOfMemoryError"​
-JAVA_OPTS="​$JAVA_OPTS -XX:​HeapDumpPath=$CATALINA_BASE/​logs/​heapdump_%p.hprof"​+JAVA_OPTS="​$JAVA_OPTS -XX:​HeapDumpPath=$CATALINA_LOGS/​heapdump_%p.hprof"​
 JAVA_OPTS="​$JAVA_OPTS -XX:​+DoEscapeAnalysis"​ JAVA_OPTS="​$JAVA_OPTS -XX:​+DoEscapeAnalysis"​
 JAVA_OPTS="​$JAVA_OPTS -XX:​+UseCompressedOops"​ JAVA_OPTS="​$JAVA_OPTS -XX:​+UseCompressedOops"​
줄 122: 줄 123:
  
 # Using Tomcat Native # Using Tomcat Native
-JAVA_OPTS="​$JAVA_OPTS -Djava.library.path=/​software/​tomcat/lib"+JAVA_OPTS="​$JAVA_OPTS -Djava.library.path=$CATALINA_HOME/lib"
  
 ##############################################​ ##############################################​
줄 160: 줄 161:
 set CATALINA_HOME=E:​\프로그램\Tomcat\apache-tomcat-8.5.4_win32_x86_64 set CATALINA_HOME=E:​\프로그램\Tomcat\apache-tomcat-8.5.4_win32_x86_64
 set CATALINA_BASE=%CATALINA_HOME%\SERVERS\%SERVER_NAME% set CATALINA_BASE=%CATALINA_HOME%\SERVERS\%SERVER_NAME%
 +set CATALINA_LOGS=%CATALINA_BASE%\logs
 set CATALINA_OPTS=-Denv=product -Denv.servername=%SERVER_NAME% set CATALINA_OPTS=-Denv=product -Denv.servername=%SERVER_NAME%
-set CATALINA_OUT=%CATALINA_BASE%\logs\catalina.out+set CATALINA_OUT=%CATALINA_LOGS%\catalina.out
 set CATALINA_PID=%CATALINA_BASE%\catalina.pid set CATALINA_PID=%CATALINA_BASE%\catalina.pid
 set CATALINA_TMPDIR=%CATALINA_BASE%\temp set CATALINA_TMPDIR=%CATALINA_BASE%\temp
줄 185: 줄 187:
 set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
 set JAVA_OPTS=%JAVA_OPTS% -verbose:gc set JAVA_OPTS=%JAVA_OPTS% -verbose:gc
-set JAVA_OPTS=%JAVA_OPTS% -Xloggc:%CATALINA_BASE%\logs\gc_%DATESTR%.log+set JAVA_OPTS=%JAVA_OPTS% -Xloggc:%CATALINA_LOGS%\gc_%DATESTR%.log
 set JAVA_OPTS=%JAVA_OPTS% -XX:​+PrintGC set JAVA_OPTS=%JAVA_OPTS% -XX:​+PrintGC
 set JAVA_OPTS=%JAVA_OPTS% -XX:​+PrintGCDetails set JAVA_OPTS=%JAVA_OPTS% -XX:​+PrintGCDetails
줄 191: 줄 193:
 set JAVA_OPTS=%JAVA_OPTS% -XX:​+PrintHeapAtGC set JAVA_OPTS=%JAVA_OPTS% -XX:​+PrintHeapAtGC
 set JAVA_OPTS=%JAVA_OPTS% -XX:​+HeapDumpOnOutOfMemoryError set JAVA_OPTS=%JAVA_OPTS% -XX:​+HeapDumpOnOutOfMemoryError
-set JAVA_OPTS=%JAVA_OPTS% -XX:​HeapDumpPath=%CATALINA_BASE%\logs\heapdump_%p.hprof+set JAVA_OPTS=%JAVA_OPTS% -XX:​HeapDumpPath=%CATALINA_LOGS%\heapdump_%p.hprof
 set JAVA_OPTS=%JAVA_OPTS% -XX:​+DoEscapeAnalysis set JAVA_OPTS=%JAVA_OPTS% -XX:​+DoEscapeAnalysis
 set JAVA_OPTS=%JAVA_OPTS% -XX:​+UseCompressedOops set JAVA_OPTS=%JAVA_OPTS% -XX:​+UseCompressedOops
줄 242: 줄 244:
 REM # receiver.address MUST set to !!REAL!! Address (Not 0.0.0.0) REM # receiver.address MUST set to !!REAL!! Address (Not 0.0.0.0)
 REM ##############################################​ REM ##############################################​
-set JAVA_OPTS=%JAVA_OPTS% -Dtomcat.engine.jvmRoute=$SERVER_NAME+set JAVA_OPTS=%JAVA_OPTS% -Dtomcat.engine.jvmRoute=%SERVER_NAME%
 REM set JAVA_OPTS=%JAVA_OPTS% -Dtomcat.engine.sessionCookieName=JSESSIONID REM set JAVA_OPTS=%JAVA_OPTS% -Dtomcat.engine.sessionCookieName=JSESSIONID
 set JAVA_OPTS=%JAVA_OPTS% -Dtomcat.cluster.member.address=228.0.0.1 set JAVA_OPTS=%JAVA_OPTS% -Dtomcat.cluster.member.address=228.0.0.1
줄 254: 줄 256:
  
 REM ##### Using Tomcat Native REM ##### Using Tomcat Native
-set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path=\software\tomcat\lib+set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path=%CATALINA_HOME%\lib
  
 REM ##############################################​ REM ##############################################​
  • tomcat.env.txt
  • 마지막으로 수정됨: 2019/04/30 16:40
  • 저자 koov