All caches in Cúram Cache are instrumented for statistics and these are integrated with the Cúram JMX infrastructure. The following minimum set of statistics are exposed by each type of cache via the CuramCacheStats MBean:
- Cache group - the name of the cache group
- Cache – the name of the cache
- Layer – the name of the cache layer (memory, disk,...)
- Size – the number of items in the cache
- Hits - the number of requests to the cache that returned an item already loaded in the cache
- Misses - the number of requests to the cache that returned an item which had to be loaded in the cache
- Evictions - the number of times items that have been evicted from the cache
- Average get time(ns) - the average elapsed time, in nanoseconds, that takes for an item to be read from the cache. Note that some cache providers might only support millisecond resolution.
Multi-instance caches offer snapshot and aggregated statistics. Snapshot statistics are for all instances alive at the moment of the query and aggregated statistics are calculated from all instances that have been created.