21.4. Enable JMX for Cache Instances
21.4. Enable JMX for Cache Instances At the Cache level, JMX statistics can be enabled either declaratively or programmatically, as follows. Enable JMX Declaratively at the Cache Level 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: Enable JMX Programmatically at the Cache Level Add the following code to programmatically enable JMX at the cache level: Report a bug
<jmxStatistics enabled="true"/> Configuration configuration = new ConfigurationBuilder().jmxStatistics().enable().build();