상세 컨텐츠

본문 제목

Weblogic wlst gc

Oracle/Weblogic

by 야솔아빠 2014. 3. 21. 15:27

본문

반응형

참고 사이트 : http://unni-at-work.blogspot.kr/2009/02/how-to-force-garbage-collection-using.html

환경

soaadmS2 : Admin Server name

soapipS21 : weblogic managed server name


1. forceGC.py 스크립트 파일을 만든다.

아래 스크립트 참고

# WLST script which calls GC.
from java.util import *
from javax.management import *
import javax.management.Attribute
print 'starting the script .... '
# please replace userid and password with your AdminServer userid and password
# plz change the IP adresss and port number accordingly
connect('weblogic','welcome1',url='t3://localhost:6001')
state('soapipS21')
# For Force GC ....
domainRuntime()
cd('/ServerRuntimes/soapipS21/JVMRuntime/soapipS21')
print ' Performing Force GC...'
cmo.runGC()
disconnect()
print 'End of script ...'
exit()





2. . ./setDomainEnv.sh 구동

3. 실행

    java weblogic.WLST forceGC.py




반응형

'Oracle > Weblogic' 카테고리의 다른 글

관련글 더보기

댓글 영역