본문 바로가기

WAS - WebLogic/설치

[weblogic] 기동/정지 스크립트 | 11g(10.3.6) | windows

#. WebLogic 11g (10.3.6) 설치 가이드 (windows)

https://hyuunchul.tistory.com/227

 

#. WebLogic 윈도우 서비스 설치 가이드

https://hyuunchul.tistory.com/111

 


 

#04. 기동 정지 스크립트

(boot.properties)

username=weblogic
password=weblogic1

 

(startA.bat)

@ECHO OFF
title WLS1036_AdminServer

set SERVER_NAME=AdminServer
set SERVER_PORT=9000
set DOMAIN_HOME=D:\WebLogic\weblogic_1036\domains\test_domain
set BOOT_PROPERTIES=%DOMAIN_HOME%\boot.properties

cd %DOMAIN_HOME%

set LOG_DIR=D:\applogs\weblogic_1036\%SERVER_NAME%

@REM ######### WebLogic log backup #########
set PREFIX=%DATE:~2%_%TIME:~0,-3%
set PREFIX=%PREFIX::=%
set PREFIX=%PREFIX:-=%
set PREFIX=%PREFIX: =0%
set PREFIX=%PREFIX:/=%

if exist %LOG_DIR%\%SERVER_NAME%.out (
    move %LOG_DIR%\%SERVER_NAME%.out %LOG_DIR%\%SERVER_NAME%.out.%PREFIX%
)

set JAVA_OPTIONS=%JAVA_OPTIONS% -Xms512m -Xmx512m -XX:PermSize=128M -XX:MaxPermSize=128M

set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.system.BootIdentityFile=%BOOT_PROPERTIES%

start /B %DOMAIN_HOME%\bin\startWebLogic.cmd > %LOG_DIR%\%SERVER_NAME%.out 2>&1 &

tail -f %LOG_DIR%\%SERVER_NAME%.out

 

(startM.bat)

@ECHO OFF
title WLS1036_m1
set SERVER_NAME=m1_1036
set SERVER_PORT=9001
set ADM_URL="t3://192.168.56.1:9000"
set DOMAIN_HOME=D:\WebLogic\weblogic_1036\domains\test_domain
set BOOT_PROPERTIES=%DOMAIN_HOME%\boot.properties

cd %DOMAIN_HOME%

set LOG_DIR=D:\applogs\weblogic_1036\%SERVER_NAME%

@REM ######### WebLogic log backup #########
set PREFIX=%DATE:~2%_%TIME:~0,-3%
set PREFIX=%PREFIX::=%
set PREFIX=%PREFIX:-=%
set PREFIX=%PREFIX: =0%
set PREFIX=%PREFIX:/=%

if exist %LOG_DIR%\%SERVER_NAME%.out (
    move %LOG_DIR%\%SERVER_NAME%.out %LOG_DIR%\%SERVER_NAME%.out.%PREFIX%
)

set JAVA_OPTIONS=%JAVA_OPTIONS% -Xms512m -Xmx512m -XX:PermSize=128M -XX:MaxPermSize=128M

set JAVA_OPTIONS=%JAVA_OPTIONS% -verbose:gc -Xloggc:%LOG_DIR%\gc_m1_1036.log -XX:+UseGCLogFileRotation -XX:GCLogFileSize=100m -XX:NumberOfGCLogFiles=50 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC

set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.system.BootIdentityFile=%BOOT_PROPERTIES%

start /B %DOMAIN_HOME%\bin\startManagedWebLogic.cmd %SERVER_NAME% %ADM_URL%  > %LOG_DIR%\%SERVER_NAME%.out 2>&1 &

tail -f %LOG_DIR%\%SERVER_NAME%.out