1 Reply Latest reply on Sep 15, 2005 10:02 AM by k_vtc

    eviction questions

    k_vtc

      Hello,

      I've just downloaded the JBossCache 1.2.3 and set it up as in the example local-service.xml, but the eviction policy does not seem to work for me.

      <!-- Name of the eviction policy class. -->
       <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">1</attribute>
       <attribute name="timeToLiveSeconds">1000</attribute>
       </region>
       <region name="/MATRIX">
       <attribute name="maxNodes">1</attribute>
       <attribute name="timeToLiveSeconds">10</attribute>
       <attribute name="maxAgeSeconds">6</attribute>
       </region>
       </config>
       </attribute>


      If I understand the docs correctly, the cache will keep my instances in the node MATRIX for 6 seconds max whether idle or not and will not let me put more than 1 object under the node. But I'm putting instances which never got evicted and I could put several instances under the same node MATRIX.

      Any pointers as to what I am doing wrong?