[infinispan-issues] [JBoss JIRA] (ISPN-5997) JMX operation ClusterCacheStats.resetStatistics() not working
Vladimir Blagojevic (JIRA)
issues at jboss.org
Mon Dec 14 07:09:00 EST 2015
[ https://issues.jboss.org/browse/ISPN-5997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13140732#comment-13140732 ]
Vladimir Blagojevic commented on ISPN-5997:
-------------------------------------------
[~NadirX] I don't have anything against this approach and we can easily implement this feature/bug by sending DistributedCallable DC to all nodes. DC would, in turn, call reset stats on all cluster nodes using Cache#getStats().reset(). ClusterCacheStats.resetStatistics() would of course continue to reset cluster-wide stats as well. We are slightly mixing apples and oranges here because we use ClusterCacheStats.resetStatistics() to reset not only cluster-wide cache stats but also individual cache stats on all nodes. LMK your thoughts.
> JMX operation ClusterCacheStats.resetStatistics() not working
> -------------------------------------------------------------
>
> Key: ISPN-5997
> URL: https://issues.jboss.org/browse/ISPN-5997
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 8.1.0.CR1
> Reporter: Jiří Holuša
> Assignee: Vladimir Blagojevic
>
> Environment: 2 servers started in domain mode (ISPN 8.1.0.CR1).
> Having some clustered cache, inserted/read some entries (just to create some statistics).
> When connected via JMX (e.g. through JConsole, see https://issues.jboss.org/browse/ISPN-5983 ) to one of the servers, I execute resetStatistics() operation on ClusterCacheStats MBean (object name: jboss.datagrid-infinispan:type=Cache,name="<cache-name>",manager="<cache-container-name>",component=ClusterCacheStats) and nothing happens, the cluster statistics are not reset.
> To actually reset the statistics, I have to connect to each of the servers in domain individually and call resetStatistics() on Statistics MBean, which deletes "a portion" of statistics of that particular server to the cluster stats.
> I would expect ClusterCacheStats.resetStatistics() to do exactly the same: call Statistics.resetStatistics() on each server.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list