简体   繁体   English

访问Tivoli Performance Module

[英]Accessing Tivoli Performance Module

I am trying to extract the PMI data using a Java Application, I already been able to access performance module, but unfortunately, i cannot access SubModule as in the below example. 我正在尝试使用Java应用程序提取PMI数据,我已经能够访问性能模块,但是不幸的是,我无法访问SubModule,如以下示例所示。

I extracted the ThreadPool Module data using this code 我使用此代码提取了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());

but I cannot access Threadpool submodules and their counters as AriesThreadPool 但我无法作为AriesThreadPool访问Threadpool子模块及其计数器

any recommended suggestion? 有什么建议吗?

在此处输入图片说明

I solved the problem just I enabled the recursively searching by replacing the parameter from false to true 我通过将参数从false替换为true启用了递归搜索,从而解决了问题

Object[] params = new Object[]{mymsd, new Boolean(true)}; Object [] params = new Object [] {m​​ymsd,new Boolean(true)};

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM