Weblogic
WLST Thread Count
아도니우스
2014. 8. 20. 08:26
WLST Thread Count in WebLogic 9.x and all higher version the Thread model is depends on WorkManager. The WorkManager internally uses self-tuning threads for each WebLogic Server instances.
-
######################################################
-
# This script is used to monitor all servers
-
# Author: Pavan Devarakonda
-
# Date: 28th April 2009
-
######################################################
-
import thread
-
# Configured user credentials with storeUserConfig
-
ucf='keypath/xuserconfig.key'
-
ukf='keypath/xkeyfile.key'
-
admurl = "t3://hostingdns.com:port"
-
def monitorThrds():
-
connect(userConfigFile=ucf, userKeyFile=ukf, url= admurl )
-
serverNames = getRunningServerNames()
-
domainRuntime()
-
print 'EXECUTE QUEUES'
-
print ' '
-
print 'Execute Total Current PendRequest ServicedRequest'
-
print 'QueueName Count IdleCount CurrCount TotalCount '
-
print '===========**=======**=================================='
-
for snam in serverNames:
-
try:
-
cd("/ServerRuntimes/" + snam.getName() + "/ExecuteQueueRuntimes/weblogic.kernel.Default")
-
totcnt=get('ExecuteThreadTotalCount')
-
idlecnt = get('ExecuteThreadCurrentIdleCount')
-
pndcnt =get('PendingRequestCurrentCount')
-
sevcnt = get('ServicedRequestTotalCount')
-
print '%10s %4d %4d %4d %16d' % (snam.getName(), totcnt, idlecnt, pndcnt, sevcnt)
-
except WLSTException,e:
-
# this typically means the server is not active, just ignore
-
pass
-
def getRunningServerNames():
-
domainConfig()
-
return cmo.getServers()
-
if __name__== "main":
-
monitorThrds()
-
disconnect()