-
Bug
-
Resolution: Done
-
Minor
-
7.1.0.DR12
-
None
I'm using a clusterbench deployment. When EAP is started, multiple caches are started, one of which is clusterbench-ee7.ear.clusterbench-ee7-web-default.war [1].
With DR11 and lower, once statistics were turned on (on cache container web and cache dist), I was able to look at the statistics of the above clusterbench cache by inspecting object
org.wildfly.clustering.infinispan:type=Cache,name="clusterbench-ee7.ear.clusterbench-ee7-web-default.war(dist_async)",manager="web",component=Statistics
That's no longer possible with DR12 as I seem to only have access to objects under org.jboss.as. Doing
JMXConnector jmxConnector = null; MBeanServerConnection connection = connectToMBeanServer(jmxConnector); Object result = connection.getAttribute(new ObjectName(objectName), attribute);
throws
javax.management.InstanceNotFoundException: org.wildfly.clustering.infinispan:type=Cache,name="clusterbench-ee7.ear.clusterbench-ee7-web-default.war(dist_async)",manager="web",component=Statistics at org.jboss.as.jmx.PluggableMBeanServerImpl.findDelegate(PluggableMBeanServerImpl.java:1117) at org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:393) at org.jboss.as.jmx.BlockingNotificationMBeanServer.getAttribute(BlockingNotificationMBeanServer.java:148) at org.jboss.as.jmx.AuthorizingMBeanServer.getAttribute(AuthorizingMBeanServer.java:210) at org.jboss.remotingjmx.protocol.v2.ServerProxy$GetAttributeHandler.handle(ServerProxy.java:689) at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153) at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:71) at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:66) at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:277) at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254) at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225) at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:66) at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
There are statistics for the dist cache under org.jboss.as, but since no dist cache is ever started, these never update and attributes like hits or misses always have null values.
[1]: 15:17:30,925 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool – 66) WFLYCLINF0002: Started clusterbench-ee7.ear.clusterbench-ee7-web-default.war cache from web container