15.6.2. Enable Infinispan Statistics Collection from the Management CLI

Procedure 15.4. Enable Infinispan Statistics Collection from the Management CLI

In this procedure:
  • CACHE_CONTAINER is the preferred cache-container (for example, web)
  • CACHE_TYPE is the preferred cache type (for example, distributed-cache)
  • CACHE is the cache name (for example, dist)
  1. Enter the following command:
    /subsystem=infinispan/cache-container=CACHE_CONTAINER/CACHE_TYPE=CACHE:write-attribute(name=statistics-enabled,value=true)
  2. Enter the following command to reload the server:
    :reload

Note

To undefine an attribute, enter the following command:
/subsystem=infinispan/cache-container=CACHE_CONTAINER/CACHE_TYPE=CACHE:undefine-attribute(name=statistics-enabled)