[jboss-jira] [JBoss JIRA] (WFLY-3106) Infinispan cache statistics cannot be enabled/disabled independently of the cache manager statistics
Richard Achmatowicz (JIRA)
issues at jboss.org
Wed Mar 12 16:31:10 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12952469#comment-12952469 ]
Richard Achmatowicz commented on WFLY-3106:
-------------------------------------------
The problem lies with this line in CacheConfigurationService:
{noformat} this.builder.jmxStatistics().enabled(this.dependencies.getCacheContainer().getCacheManagerConfiguration().globalJmxStatistics().enabled());
{noformat}
In other words, when setting up the cache configuration service, which exists for every cache, CacheConfigurationService sets the cache's statistics enabled setting to match that of its cache manager. This has the effect of overriding any value of statistics-enabled which was set in the management API for the cache.
Removing this line fixes the problem.
> Infinispan cache statistics cannot be enabled/disabled independently of the cache manager statistics
> --------------------------------------------------------------------------------------------------------
>
> Key: WFLY-3106
> URL: https://issues.jboss.org/browse/WFLY-3106
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Clustering
> Affects Versions: 8.0.0.Final
> Reporter: Richard Achmatowicz
> Assignee: Richard Achmatowicz
> Fix For: 8.0.1.Final
>
>
> The Infinispan subsystem allows enabling and disabling the collection of statistics for cache managers and caches via the "statistics-enabled" management API attribute.
> It is possible to set statistics-enabled attributes independently for cache managers and caches in the management API, but when checking the Infinispan MBeans, we see that statistics are either enabled for cache managers and their caches, or disabled for cache managers and caches.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list