0 Replies Latest reply on Jul 4, 2013 7:12 AM by oliverschell

    jboss 7.1 replicated cluster cache - eviction parameter useless?

    oliverschell

      Hello everybody,

       

      second strange behaviour while experimenting with Infinispan in JBoss 7.1/7.2. Adding an eviction parameter with max-entries="x" seems to do nothing at all. Clustered stateful beans are put into the cache endlessly. The Infinispan MBeans for activating and passivating purposes log no activity at all. Replication in between cluster nodes happens correctly, but no eviction from the cache.

       

      <cache-container name="ejb" aliases="sfsb sfsb-cache" default-cache="repl" module="org.jboss.as.clustering.ejb3.infinispan">

                      <transport lock-timeout="60000"/>

                      <replicated-cache name="repl" mode="ASYNC" batching="true">

                          <eviction strategy="LRU" max-entries="2"/>

                          <file-store/>

                      </replicated-cache>

                      <replicated-cache name="remote-connector-client-mappings" mode="SYNC" batching="true"/>

                      <distributed-cache name="dist" l1-lifespan="0" mode="ASYNC" batching="true">

                          <eviction strategy="LRU" max-entries="10000"/>

                          <file-store/>

                      </distributed-cache>

      </cache-container>

       

      Thanks for any advice!