#########
#get max heap size for all JVMs on a given node. Must connect to dmgr for this to work
#########
myNode='mw-node-001'
serverList = AdminServerManagement.listServers("",myNode)
for server in serverList:
serverName=AdminConfig.showAttribute(server,'name')
maxHeapL=AdminServerManagement.listJVMProperties(myNode,serverName,'maximumHeapSize')
maxHeap=str(maxHeapL)
print serverName + " " + maxHeap
Well, it started as a place for middleware notes, tips and tricks, but really, this is a place for me to list out some of the general notes, etc I have for myself. If anyone else finds them useful... Great! If not, at least I have a clipboard of solutions for me...
Thursday, July 21, 2011
Jython Snippet - Max Heap or All appServers on Node XYZ
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment