1 Reply Latest reply on Nov 7, 2007 7:29 AM by Manik Surtani

    Persisting eviction statistics

    Raymond Manaloto Newbie

      I am planning to use JBossCache v2.x with a filesystem as the secondary backend. It seems that the eviction policy only keeps statistics of the cache in memory. When I need to restart the JBossCache process I will lose all metadata/statistics associated with the items in the cache.

      Is there a way to get this information to persist and reload on a cache startup? If not, is there a todo item related to this. Has anybody come across this same situation, any advice would be greatly appreciated.

      Thanks in advance,

        • 1. Re: Persisting eviction statistics
          Manik Surtani Master

          This is by design. Eviction information is only about nodes which are in memory at any given time, so the eviction thread knows what can be evicted, or more specifically, the order in which to evict things.

          This information is meaningless in a cache loader, or even when freshly loaded on startup. The eviction algorithm should monitor usage patterns after startup and then evict accordingly.