상세 컨텐츠

본문 제목

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' 카테고리의 다른 글

WAR, EAR 차이  (0) 2016.05.20
maven build to the WebLogic 12c  (0) 2016.05.11
JMS queue load balance 설정  (0) 2014.03.10
Weblogic bsu patch  (0) 2013.12.18
How to JMS queue in Weblogic using Mbean. Mbean 이용한 Weblogic queue 모니터링  (0) 2013.10.20

관련글 더보기

댓글 영역