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()
'Weblogic' 카테고리의 다른 글
| pythons programming (0) | 2014.08.25 |
|---|---|
| JVM Monitoring with WLST (0) | 2014.08.20 |
| WebLogic Scripting Tool (WLST) Overview (0) | 2014.08.19 |
| Server State using WLST (0) | 2014.08.19 |
| JDBC Monitoring (0) | 2014.08.19 |
