[infinispan-dev] Exposing numOwners through JMX

David van Balen dvanbale at redhat.com
Thu Jul 19 11:03:16 EDT 2012


That attribute doesn't seem to be working for me. When I try to access it in jconsole, I get this in the server log:

10:56:53,338 WARN  [org.infinispan.jmx.ResourceDMBean] (RMI TCP Connection(2)-127.0.0.1) ISPN000036: Did not find attribute configurationAsXmlString

If I try to access it programmatically, through the MBeanServer, I get this in the server log:

10:49:27,598 ERROR [stderr] (http-/127.0.0.1:8180-1) javax.management.AttributeNotFoundException: Unknown attribute 'configurationAsXmlString'. Known attributes names are: [cacheName, cacheStatus, configurationAsXmlString]
10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) 	at org.infinispan.jmx.ResourceDMBean.getAttribute(ResourceDMBean.java:201)
10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) 	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:683)
10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) 	at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:672)
10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) 	at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.getAttribute(PluggableMBeanServerImpl.java:419)
10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) 	at org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:154)


which seems strange, since it's reported among the "known attribute names". Nothing obvious jumps out at me from looking at the code for ResourceDMBean.





----- Original Message -----
From: "Galder Zamarreño" <galder at redhat.com>
To: "infinispan -Dev List" <infinispan-dev at lists.jboss.org>
Sent: Thursday, July 19, 2012 9:29:34 AM
Subject: Re: [infinispan-dev] Exposing numOwners through JMX

Did you try: Cache.ConfigurationAsXmlString jmx property?

On Jul 18, 2012, at 11:14 PM, David van Balen wrote:

> After looking at the JMX component documentation (http://docs.jboss.org/infinispan/5.1/apidocs/jmxComponents.html) and browsing around in jconsole, I don't see the numOwners attribute for distributed caches exposed anywhere, although I thought I had seen it before.
> 
> In any case, the only way I see numOwners being retrieved in the ISPN source is by calling DistributionManager.locate for a particular key. Is there a way to retrieve the currently configured value of numOwners, regardless of whether it's the default or was overridden in the configuration?
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache


_______________________________________________
infinispan-dev mailing list
infinispan-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev



More information about the infinispan-dev mailing list