Hello, I have some very basic questions that I hope to get help with. I am working on a re-implementation of the cocoon eventcache block, because it had some pretty severe memory leaks in it. I did rebuilt it, and instead of double event mappings, I am using 1 single map with WeakReferences to cachekeys. I have 3 different stores (repository docs, repository binary and pipeline store), currently in combination with ehcache. For some reason, working with WeakReferences and ehcache, I cannot use its diskStore anymore, because I lose all weakreferences of keys that are spooled to disk. Testing ehcache extensively, I cannot reproduce this behavior. Since I was totally out of clues, I tested JCS, which I had not used before. Problems totally seemed to be solved, enabling me to use the diskStore again, without losing weakrefs.
Since I want to use it in quite some large sites ( ~ 50.000 pages and more, ie http://www.minfin.nl/en/home or http://www.minbuza.nl/en/home) I hoped somebody could help me out so that I know for sure I have the JCS settings right (Sry that they are all really n00b questions.... :-) ) 1) Can I set the diskStore cache to have a maxobjects? I know I can do for the memory store, but I want to control the absolute number of keys in memory (I suppose, diskStore keys are also kept in memory, only the response is spooled to disk, right?). Is it possible to set the maxobjects for diskStore? 2) One of my stores, is a store to cache binaries from a repository. I do not need this store to have the responses in memory. I would like to use diskStore only. Suppose the region is called 'binary', should I then set the jcs.region.binary.cacheattributes.MaxObjects=1, or can I better set it to 0 ? 3) I am seeing 'jcs.system.groupIdCache', and I do not understand what its purpose is. 4) I am currently having jcs-1.2.5-dev-22050313.jar....this is probably quite an old one. Do I get really big problems when sticking to this old version, or can I better update 5) I certainly want the jcs.region.main.cacheattributes.UseMemoryShrinker set to true, is there some preferred setting for the ShrinkerIntervalSeconds. I suppose it depends on how large your cache is? 6) I can set MaxMemoryIdleTimeSeconds for the region properties. What I do understand, is that after idle time, elements are spooled to disk when available. I want elements to be removed when idle, is it then sufficient to have isEternal false, and MaxLifeSeconds equal to MaxMemoryIdleTimeSeconds? 7) And my last question :-) If I am having three stores, can I set all common configuration in once, with jcs.default properties, and override only the specific setting per store? 8) sorry, one more question: are there cache statistics available... Hopefully not everybody has closed my too long email with too many questions before getting to this line, Regards Ard Schrijvers -- Hippo Oosteinde 11 1017WT Amsterdam The Netherlands Tel +31 (0)20 5224466 ------------------------------------------------------------- http://www.hippo.nl [EMAIL PROTECTED] / [EMAIL PROTECTED] -------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]