Hi, I am experimenting with CacheManager settings. I found that setting bundleCacheSize in repository.xml is not relevant anymore in 2.2.9 because AbstractBundlePersistenceManager uses ConcurrentCache as other parts of Jackrabbit. I want to ask what is then recommended ratio between maxMemory and maxMemoryPerCache. CacheManager resizes caches according usage policy but it handles all caches equally so there is no way how to say keep size of cache for AbstractBundlePersistenceManager fixed. I enabled logging for CacheManager set maxMemory == maxMemoryPerCache in hope that when eg bundle cache will need more memory it will take it and keep it. But actually it fluctuates as follows:
resizeAll size=4 org.apache.jackrabbit.core.cache.ConcurrentCache@ceb95b now:131072 used:0 access:0 new:131072 org.apache.jackrabbit.core.cache.ConcurrentCache@1ec3263 now:131072 used:78000 access:0 new:131072 org.apache.jackrabbit.core.cache.ConcurrentCache@18f89c9 now:502135168 used:89953950 access:12192 new:89953950 org.apache.jackrabbit.core.cache.ConcurrentCache@174a57e now:34473600 used:34473600 access:0 new:446654818 resizeAll size=4 org.apache.jackrabbit.core.cache.ConcurrentCache@ceb95b now:131072 used:0 access:0 new:131072 org.apache.jackrabbit.core.cache.ConcurrentCache@1ec3263 now:131072 used:78000 access:0 new:131072 org.apache.jackrabbit.core.cache.ConcurrentCache@18f89c9 now:89953950 used:89953550 access:8763 new:502135168 org.apache.jackrabbit.core.cache.ConcurrentCache@174a57e now:446654818 used:34473600 access:0 new:34473600 resizeAll size=4 org.apache.jackrabbit.core.cache.ConcurrentCache@ceb95b now:131072 used:0 access:0 new:131072 org.apache.jackrabbit.core.cache.ConcurrentCache@1ec3263 now:131072 used:78000 access:0 new:131072 org.apache.jackrabbit.core.cache.ConcurrentCache@18f89c9 now:502135168 used:92719750 access:9144 new:92719750 org.apache.jackrabbit.core.cache.ConcurrentCache@174a57e now:34473600 used:34473600 access:0 new:443889018 resizeAll size=4 org.apache.jackrabbit.core.cache.ConcurrentCache@ceb95b now:131072 used:0 access:0 new:131072 org.apache.jackrabbit.core.cache.ConcurrentCache@1ec3263 now:131072 used:78000 access:0 new:131072 org.apache.jackrabbit.core.cache.ConcurrentCache@18f89c9 now:92719750 used:92719650 access:9906 new:502135168 org.apache.jackrabbit.core.cache.ConcurrentCache@174a57e now:443889018 used:34473600 access:0 new:34473600 Is there any way how to change this? It might be good to set some cache instance fixed eg. bundle cache and rest let to be managed by CacheManager. Marek
