Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

13.5. Enable Infinispan Statistics Collection


Statistics collection can be enabled from either the startup configuration file (for example standalone.xml, standalone-ha.xml, domain.xml) or the Management CLI.

Procedure 13.3. Enable Infinispan Statistics in the Startup Configuration File

  • Add the attribute statistics-enabled=VALUE to the required cache-container or cache XML 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"/>

Copy to Clipboard Toggle word wrap

Example 13.3. Enable Statistics Collection for a cache-container

<cache-container name="singleton" aliases="cluster ha-partition" default-cache="default" statistics-enabled="true">

Copy to Clipboard Toggle word wrap

13.5.2. Enable Infinispan Statistics Collection from the Management CLI

Procedure 13.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:

    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)
    Copy to Clipboard Toggle word wrap

    Example 13.5. Enable Statistics Collection for a cache-container

    /subsystem=infinispan/cache-container=CACHE_CONTAINER:write-attribute(name=statistics-enabled,value=true)
    Copy to Clipboard Toggle word wrap
  2. Enter the following command to reload the server:
    reload
    Copy to Clipboard Toggle word wrap

Note

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

13.5.3. Verify Infinispan Statistics Collection is Enabled

Procedure 13.5. Verify Infinispan Statistics Collection is Enabled

Depending on whether you are confirming that statistics collection is enabled on a 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)
      Copy to Clipboard Toggle word wrap
    • For a cache-container

      /subsystem=infinispan/cache-container=CACHE_CONTAINER:read-attribute(name=statistics-enabled)
      Copy to Clipboard Toggle word wrap
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat