![](/img/trans.png)
[英]The activeCount(session) is not reducing in the Tivoli Performance viewer
[英]Accessing Tivoli Performance Module
我正在嘗試使用Java應用程序提取PMI數據,我已經能夠訪問性能模塊,但是不幸的是,我無法訪問SubModule,如以下示例所示。
我使用此代碼提取了ThreadPool模塊數據
StatDescriptor mysd = new StatDescriptor(new String[] { PmiConstants.THREADPOOL_MODULE });
MBeanStatDescriptor mymsd = new MBeanStatDescriptor(nodeAgent, mysd);
Object[] params = new Object[]{mymsd, new Boolean(false)};
String[] signature = new String[] { "com.ibm.websphere.pmi.stat.MBeanStatDescriptor", "java.lang.Boolean" };
com.ibm.ws.pmi.stat.StatsImpl myStats = (StatsImpl) adminClient.invoke(perfOn, "getStatsObject", params, signature);
//System.out.println("myStats Size = " + myStats.dataMembers().size()+ "\n" + myStats.toString());
但我無法作為AriesThreadPool訪問Threadpool子模塊及其計數器
有什么建議嗎?
我通過將參數從false替換為true啟用了遞歸搜索,從而解決了問題
Object [] params = new Object [] {mymsd,new Boolean(true)};
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.