jython获取was5.1的jvm监控参数

时间:2023-03-08 17:21:10
perfName = AdminControl.completeObjectName ('type=Perf,process=server1,node=TSC,cell=TSC,*')
perfOName = AdminControl.makeObjectName (perfName)
print perfOName
jvmName = AdminControl.completeObjectName ('type=JVM,process=server1,node=TSC,cell=TSC,*')
params = [AdminControl.makeObjectName (jvmName), java.lang.Boolean ('false')]
sigs = ['javax.management.ObjectName', 'java.lang.Boolean']
datas=AdminControl.invoke_jmx(perfOName, 'getStatsObject', params, sigs)
print '==data=='
print datas
print '==data=='