I have set up a Spring cache manager backed by a ConcurrentMapCache
for my application.
I am seeking for ways to monitor the cache and especially make sure the data in cache fits in memory. I considered using jvisualvm for that purpose but there might be other ways... If so what are they?
So my question is basically twofold:
- What is the best way to monitor a cache backed by a
ConcurrentMapCache
? - What are the general guidelines for setting the time to live and cache size values of a cache?