[jboss-user] [JBossCache] - Cache 1.4.1 region problems on jboss-ea-4.2.0
loumaus
do-not-reply at jboss.com
Thu Sep 27 06:40:43 EDT 2007
Im experiencing some problems with my current region configuration.
| <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
|
| <!-- Specific eviction policy configurations. This is LRU -->
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <!-- Cache wide default -->
| <region name="/_default_">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">0</attribute>
| <attribute name="maxAgeSeconds">60</attribute>
| </region>
| <region name="/catalog/persistent">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">0</attribute>
| <attribute name="maxAgeSeconds">7200</attribute>
| </region>
| </config>
| </attribute>
|
As quite obvious I setup two regions, the default one whose nodes expire after 60 secs and the persistent one whose nodes expire after 7200 seconds.
One corresponding entity looks like:
|
| @Entity
| @Cache(usage = CacheConcurrencyStrategy.READ_ONLY, region = "/catalog/persistent", include="all")
|
The server log reveals that both regions have been properly setup:
| 2007-09-27 12:19:29,938 DEBUG [org.jboss.cache.TreeCache] Creating jboss.cache:service=EJB3EntityTreeCache
|
| 2007-09-27 12:19:29,962 DEBUG [org.jboss.cache.TreeCache] Using deprecated configuration element 'EvictionPolicyProvider'. This is only provided for 1.
|
| 2.x backward compatibility and may disappear in future releases.
|
| 2007-09-27 12:19:29,970 DEBUG [org.jboss.cache.eviction.LRUConfiguration] parseConfig: name -- /_default_ maxNodes -- 5000 timeToLiveSeconds -- 0 maxAge
|
| Seconds -- 60
|
| 2007-09-27 12:19:29,970 DEBUG [org.jboss.cache.eviction.RegionManager] createRegion(): creating region for fqn- /_default_
|
| 2007-09-27 12:19:29,974 DEBUG [org.jboss.cache.eviction.LRUConfiguration] parseConfig: name -- /catalog/persistent maxNodes -- 5000 timeToLiveSeconds --
|
| 0 maxAgeSeconds -- 7200
|
| 2007-09-27 12:19:29,974 DEBUG [org.jboss.cache.eviction.RegionManager] createRegion(): creating region for fqn- /catalog/persistent
|
| 2007-09-27 12:19:29,992 INFO [org.jboss.cache.factories.InterceptorChainFactory] interceptor chain is:
|
|
The problem I am facing is that the cache nodes always expire after 60secs which means that no entities have been assigned to the region /catalog/persistent although we configured them accordingly.
Any idea on howto to help me on this issue ???
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089258#4089258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089258
More information about the jboss-user
mailing list