Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-250

DOC: CacheMonitor performance: improve or document properly the implications

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • None
    • 5.9.4
    • None
    • None
    • Yes

    Description

      CacheMonitor mbean exposes various metrics that can be scraped by the monitoring systems such as Prometheus or DataDog. Scraping a couple of those metrics though can have some serious implications on the system's memory allocation footprint and/or performance in general:

      • info.magnolia.module.cache.mbean.CacheMonitor#getCachedKeysCount
      • info.magnolia.module.cache.mbean.CacheMonitor#getCachedUUIDsCount

      Both of the above perform some aggregate calculations over the entries stored in cache and may accidentally cause a multitude of those to be loaded in memory just for the iterative counting purposes.

      Scaping those metrics should be done carefully and our documentation needs to address that. (or we can eliminate them completely, or somehow improve their performance which I doubt)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                apchelintcev Aleksandr Pchelintcev
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoR