Infinispan Enabling Cache Statistics: Difference between revisions
Jump to navigation
Jump to search
(→Status) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
=Overview= | =Overview= | ||
Statistics can be enabled at cache container level, as well as individual cache level. | Statistics can be enabled at cache container level, as well as individual cache level, or both. The statistics option for each cache overrides the option for the corresponding cache container. Enabling or disabling statistics collection for a cache container will cause all caches in that container to inherit the setting, unless they explicitly specify their own. | ||
=Status= | =Status= | ||
Line 19: | Line 17: | ||
| [[JDG_6_JMX#statisticsEnabled_individual_cache |JDG 6 JMX]] || [[JDG 6 CLI#statistics_individual_cache|JDG 6 CLI]] | | [[JDG_6_JMX#statisticsEnabled_individual_cache |JDG 6 JMX]] || [[JDG 6 CLI#statistics_individual_cache|JDG 6 CLI]] | ||
|- | |- | ||
| [[JDG 7 JMX# | | [[JDG 7 JMX#statistics_individual_cache|JDG 7 JMX]] || [[JDG 7 CLI#statistics_individual_cache|JDG 7 CLI]] | ||
|- | |- | ||
|} | |} | ||
Line 28: | Line 26: | ||
| [[JDG_6_JMX#statisticsEnabled|JDG 6 JMX]] || [[JDG 6 CLI#statistics|JDG 6 CLI]] | | [[JDG_6_JMX#statisticsEnabled|JDG 6 JMX]] || [[JDG 6 CLI#statistics|JDG 6 CLI]] | ||
|- | |- | ||
| [[JDG 7 JMX# | | [[JDG 7 JMX#statistics|JDG 7 JMX]] || [[JDG 7 CLI#statistics|JDG 7 CLI]] | ||
|- | |- | ||
|} | |} |
Latest revision as of 20:47, 26 October 2016
Internal
Overview
Statistics can be enabled at cache container level, as well as individual cache level, or both. The statistics option for each cache overrides the option for the corresponding cache container. Enabling or disabling statistics collection for a cache container will cause all caches in that container to inherit the setting, unless they explicitly specify their own.
Status
Whether statistics have been enabled or not is reported both by the JMX and CLI management interfaces:
Individual Cache
JDG 6 JMX | JDG 6 CLI |
JDG 7 JMX | JDG 7 CLI |
Cache Container
JDG 6 JMX | JDG 6 CLI |
JDG 7 JMX | JDG 7 CLI |
Turning The Statistics On
EAP 6.4
Configuration File
Per cache container:
<cache-container name="..." ... statistics-enabled="true"> ... </cache-container>
Per cache:
<replicated-cache name="..." ... statistics-enabled="true"/> <distributed-cache name="..." ... statistics-enabled="true"/>
CLI
/subsystem=infinispan/cache-container=<cache-container-name>:write-attribute(name=statistics-enabled,value=true) /subsystem=infinispan/cache-container=<cache-container-name>/<cache-type>=<cache-name>:write- attribute(name=statistics-enabled,value=true) reload
Test
/subsystem=infinispan/cache-container=<cache-container-name>:read-attribute(name=statistics-enabled) /subsystem=infinispan/cache-container=<cache-container-name>/<cache-type>=<cache-name>:read-attribute(name=statistics-enabled)
JDG 6.6
Configuration File
Per cache container:
<cache-container name="..." ... statistics="true"> ... </cache-container>
Per cache:
<replicated-cache name="..." ... statistics="true"/> <distributed-cache name="..." ... statistics="true"/>
CLI
/subsystem=infinispan/cache-container=<cache-container-name>:write-attribute(name=statistics,value=true) /subsystem=infinispan/cache-container=<cache-container-name>/<cache-type>=<cache-name>:write-attribute(name=statistics,value=true) reload
Test
/subsystem=infinispan/cache-container=<cache-container-name>:read-attribute(name=statistics) /subsystem=infinispan/cache-container=<cache-container-name>/<cache-type>=<cache-name>:read-attribute(name=statistics)