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

Correct some unavailable at runtime JMX cache statistics

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 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.

      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

              pruivo@redhat.com Pedro Ruivo
              fercoli@redhat.com Fabio Massimo Ercoli
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: