Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5490

Implement replacement for obsolete CacheMetrics#getOffHeapAllocatedSize

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • None
    • cache

    Description

      With new 2.0 architecture, many caches can share one memory policy. Memory metrics allows to measure memory usage (loaded pages) for the whole policy. However, there's also a need to measure how much memory (or pages) is used by each cache.
      Before 2.0 such information was accessible with CacheMetrics#getOffHeapAllocatedSize, but current implemetation returns 0.
      We should either implement it or provide alternative metrics (e. g. approximate number of loaded pages per cache). Please note that if persistence is disabled, precise number of loaded pages per cache is not defined - one page can contain entries of different caches.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ivan.glukos Ivan Rakov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: