Followers

Tuesday, August 6, 2013

WLST Script for force Garbage collection


  1. # WLST script which calls GC.
  2. from java.util import *
  3. from javax.management import *
  4. import javax.management.Attribute
  5. print 'starting the script .... '
  6. connect('userid','password',url='t3://192.168.17:9001')
  7. state('AdminServer')
  8. # For Force GC ....
  9. domainRuntime()
  10. cd('/ServerRuntimes/AdminServer/JVMRuntime/AdminServer')
  11. print ' Performing Force GC...'
  12. cmo.runGC()
  13. disconnect()
  14. print 'End of script ...'
  15. exit()

No comments:

Post a Comment