Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14330

Correct some unavailable at runtime JMX cache statistics

    XMLWordPrintable

Details

    • Hide

      To reproduce the case we need to add for instance the following tag to cache container of the Infinispan server configuration :

      <jmx enabled="true" domain="fax.play" />

      and look at the MBeans describing the statistics attributes of a given cache.
      See the Screenshot.

      Show
      To reproduce the case we need to add for instance the following tag to cache container of the Infinispan server configuration : <jmx enabled="true" domain="fax.play" /> and look at the MBeans describing the statistics attributes of a given cache. See the Screenshot.

    Description

      There are some attributes of JMX cache statistics that are always unavailable at runtime.

      That are: hitTimes, missTimes, removeTimes, storeTimes and statisticsEnabled.

      I think that we can safely assume that these attributes are not used by other Infinispan components, such as the metrics produced for the console for instance.

      My proposal is the following:

      1. remove hitTimes, since we already also have the hits attribute on the same MBean
      2. remove missTimes, since we already also have the misses attribute on the same MBean
      3. remove storeTimes, since we already also have the stores attribute on the same MBean
      4. rename the removeTimes attribute to removes, to make its name consistent with the other names and make it working (for instance removes := removeHits + removeMisses)
      5. fix the statisticsEnabled attribute

      Attachments

        Activity

          People

            pruivo@redhat.com Pedro Ruivo
            fercoli@redhat.com Fabio Massimo Ercoli
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: