Where can I configure JBoss AS7 + Infinispan so that I can see cache statistics?
glenblewis Jun 20, 2012 7:32 PMWhere can I configure JBoss AS7 + Infinispan so that I can see the cache statistics?
Details:
I'm trying to monitor the cache stats identified at this URL http://docs.jboss.org/infinispan/5.1/apidocs/jmxComponents.html#Statistics and inserted below:
Component Statistics (Class org.infinispan.interceptors.CacheMgmtInterceptor) General statistics such as timings, hit/miss ratio, etc. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Attributes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Operations | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It appears as though the Infinispan (standalone) configuration element to enable these statistics for the caches and not just the cache manager through JMX is:
<jmxStatistics enabled=
"true"
/>
as identified at this URL: https://docs.jboss.org/author/display/ISPN/Management+Tooling
However, when using Infinispan as part of JBoss AS7, the standard configuration files aren't used. Instead, a unified version of the configuration is instead. The valid configuration parameters are identified in the schema files found in $JBOSS_HOME/docs/schema. None of these files contains any configuration elements (that I can identify) for turning on JMX statistics for Infinispan caches.
Using JMX I can see the CacheManager statistics, but I cannot see any specific cache statistics.
Where can I configure JBoss AS7 + Infinispan so that I can see the cache statistics? I've spent hours looking for answers and am unable to find anything.
Thanks,
-Glen