3 Replies Latest reply on Aug 1, 2007 7:47 PM by Scott Stark

    TimedCachedPolicy never removes entries from cache

    Fredrik Bertilsson Newbie

      I have been performance testing JBoss (3.0.2) by making many client calls from houndreds of different users. I noticed that the Authentication cache (JaasSecurityManager$DomainInfo objects) just increased. Old users were never removed from the cache. When I checked the source for TimedCachePolicy (which have the cache functionality) I read in the comments that TimedCachePolicy is a lazy cache. Entries can only be removed when asked for. The only way to remove entries from the cache is to manually flush the cache.

      I can't belive it is supposed to be this way. Someone must have used JBoss for applications with thousands of users and encountered OutOfMemory-exception because of this. Is is anyone that have a idea about how to solve this??