jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: Cache tuning
Date Mon, 02 Jul 2007 07:40:34 GMT
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

Mime
View raw message