Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-751

RegionMXBean shouldn't rely on Eviction Algorithm for getEntrySize

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.0-incubating
    • None
    • jmx, statistics
    • None

    Description

      We have the following in the javadoc for method getEntrySize on interface RegionMXBean:

      Returns the aggregate entry size (in bytes) of all entries. This will provide a correct value only if the eviction algorithm has been set to EvictionAlgorithm.LRU_MEMORY. For all partition regions it will show entry size in bytes. It will also include size of all the secondary entries in the data store. So while referring to size one should take redundancy into account.

      The region memory consumption and the eviction algorithm are two separate concepts, we should not obligate customers to use a custom eviction algorithm to report the correct memory consumption for a region.

      We rely on this attribute to show information on PULSE, so neither the member memory usage nor cluster memory usage are accurate if the eviction algorithm is not configured as EvictionAlgorithm.LRU_MEMORY.

      To reproduce, start up a cluster with a simple replicated region and insert some data. You can check afterwards (from JConsole) that the attribute "EntrySize" for the replicated region is set as "-1".

      Attachments

        Activity

          People

            jens.deppe Jens Deppe
            jens.deppe Jens Deppe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: