Hi,

is there a way to tune the internal JR cache?

I just wrote a section on the Jackrabbit wiki, see
http://wiki.apache.org/jackrabbit/ExamplesPage
at the very bottom, 'Jackrabbit Cache Configuration'.

CacheManager manager = ((RepositoryImpl) repository).getCacheManager();
manager.setMaxMemory(8 * 1024 * 1024); // default is 16 * 1024 * 1024
manager.setMaxMemoryPerCache(1024 * 1024); // default is 4 * 1024 * 1024
manager.setMinMemoryPerCache(64 * 1024); // default is 128 * 1024

I mean file cache created reading from db.

I am not sure if the item state cache is the cache you refer to. If
not, could you please explain what you mean with file cache?

Thanks,
Thomas

Reply via email to