使用wsadmin腳本收集系統數據
#獲取SERVER
server = AdminConfig.getid('/Server:/').split('(')[0]
#獲取NODE
node = AdminControl.getNode()
#根據SERVER和NODE獲取JVM信息
jvm = AdminControl.completeObjectName('type=JVM,process='+server+',node='+node+',*')
#生成HEAPDUMP
print 'begin make thread heapdump ...'
AdminControl.invoke(jvm,'generateHeapDump')
#生成JAVACORE
print 'begin make thread javacore ...'
AdminControl.invoke(jvm,'dumpThreads')
#生成SYSCORE
print 'begin make thread syscore ...'
AdminControl.invoke(jvm,'generateSystemDump')