21.4. Enable JMX for Cache Instances
Add the following snippet within either the <default> element for the default cache instance, or under the target <namedCache> element for a specific named cache:
<jmxStatistics enabled="true"/>
<jmxStatistics enabled="true"/>
Add the following code to programmatically enable JMX at the cache level:
Configuration configuration = new ConfigurationBuilder().jmxStatistics().enable().build();
Configuration configuration = new
ConfigurationBuilder().jmxStatistics().enable().build();
Add the following code to declaratively enable JMX at the cache level:
<local-cache name="default" start="EAGER" statistics="true">
<local-cache name="default" start="EAGER" statistics="true">
Note
enabled property to "false" and for Remote Client-Server mode, set the statistics property to "false."