Many times JVM misbehaves, and we may have to force GC. The best way to do it is using WLST.
Although the script doesn’t guarantee that GC would run, but many cases a force GC runs and a lot of memory gets freed up.
I expect you to have:
The Script:
# 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('userid','password',url='t3://localhost:port')
state('AdminServer')
# For Force GC ....
domainRuntime()
cd('/ServerRuntimes/AdminServer/JVMRuntime/AdminServer')
print ' Performing Force GC...'
cmo.runGC()
disconnect()
print 'End of script ...'
exit()
Cheers :)
Unni