Este conteúdo não está disponível no idioma selecionado.
13.5. Enable Infinispan Statistics Collection
standalone.xml, standalone-ha.xml, domain.xml) or the Management CLI.
13.5.1. Enable Infinispan Statistics Collection in the Startup Configuration File Copiar o linkLink copiado para a área de transferência!
Procedure 13.3. Enable Infinispan Statistics in the Startup Configuration File
- Add the attribute
statistics-enabled=VALUEto the requiredcache-containerorcacheXML tag under the Infinispan subsystem.
Example 13.2. Enable Statistics Collection for a cache
<replicated-cache name="sso" mode="SYNC" batching="true" statistics-enabled="true"/>
<replicated-cache name="sso" mode="SYNC" batching="true" statistics-enabled="true"/>
Example 13.3. Enable Statistics Collection for a cache-container
<cache-container name="singleton" aliases="cluster ha-partition" default-cache="default" statistics-enabled="true">
<cache-container name="singleton" aliases="cluster ha-partition" default-cache="default" statistics-enabled="true">
13.5.2. Enable Infinispan Statistics Collection from the Management CLI Copiar o linkLink copiado para a área de transferência!
Procedure 13.4. Enable Infinispan Statistics Collection from the Management CLI
CACHE_CONTAINERis the preferredcache-container(for example,web)CACHE_TYPEis the preferred cache type (for example,distributed-cache)CACHEis the cache name (for example,dist)
- Enter the following command:
Example 13.4. Enable Statistics Collection for a
cache/subsystem=infinispan/cache-container=CACHE_CONTAINER/CACHE_TYPE=CACHE:write-attribute(name=statistics-enabled,value=true)
/subsystem=infinispan/cache-container=CACHE_CONTAINER/CACHE_TYPE=CACHE:write-attribute(name=statistics-enabled,value=true)Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example 13.5. Enable Statistics Collection for a
cache-container/subsystem=infinispan/cache-container=CACHE_CONTAINER:write-attribute(name=statistics-enabled,value=true)
/subsystem=infinispan/cache-container=CACHE_CONTAINER:write-attribute(name=statistics-enabled,value=true)Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter the following command to reload the server:
reload
reloadCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Note
/subsystem=infinispan/cache-container=CACHE_CONTAINER/CACHE_TYPE=CACHE:undefine-attribute(name=statistics-enabled)
/subsystem=infinispan/cache-container=CACHE_CONTAINER/CACHE_TYPE=CACHE:undefine-attribute(name=statistics-enabled)
/subsystem=infinispan/cache-container=CACHE_CONTAINER:undefine-attribute(name=statistics-enabled)
/subsystem=infinispan/cache-container=CACHE_CONTAINER:undefine-attribute(name=statistics-enabled)
13.5.3. Verify Infinispan Statistics Collection is Enabled Copiar o linkLink copiado para a área de transferência!
Procedure 13.5. Verify Infinispan Statistics Collection is Enabled
cache or cache-container, use one of the following Management CLI commands.
For a
cache/subsystem=infinispan/cache-container=CACHE_CONTAINER/CACHE_TYPE=CACHE:read-attribute(name=statistics-enabled)
/subsystem=infinispan/cache-container=CACHE_CONTAINER/CACHE_TYPE=CACHE:read-attribute(name=statistics-enabled)Copy to Clipboard Copied! Toggle word wrap Toggle overflow For a
cache-container/subsystem=infinispan/cache-container=CACHE_CONTAINER:read-attribute(name=statistics-enabled)
/subsystem=infinispan/cache-container=CACHE_CONTAINER:read-attribute(name=statistics-enabled)Copy to Clipboard Copied! Toggle word wrap Toggle overflow