[jboss-user] [JBossCache] - Re: Jboss cache and heapspace memory

mircea.markus do-not-reply at jboss.com
Tue Nov 13 10:47:43 EST 2007


i am using jboss cache to cache string objects with a key. these are basically xml string but stored as plain java strings. I have written a customLRUPolicy wherein at the end of day when maxage is reached (86400 seconds) the object is removed from cache rather than evict. otherwise no difference between wat i have patched on LRUPolicy. 
so insted of calling Cache.evict your CustomLRUPolicy calls Cache.remove, right?
There are two possibilities of doing that, one would be [1]Cache.remove or [2]CacheImpl._remove
For [1], the call goes through the interceptor chain including CacheStore interceptor, which would also remove the node from the persistent storage. This results in not having the data in memory both and disk... Can you please send the used cache configuration file.
[2] is not recommended at all as it violates cache internals (e.g. transaction locks etc) 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104188#4104188

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104188



More information about the jboss-user mailing list