5 Replies Latest reply on Mar 22, 2012 9:10 AM by jaydev

    passivation configured without an eviction policy with 5.1.1.FINAL

    jaydev Newbie

      Hi,

       

      I am using a file cache store and started getting the following warning when I moved to 5.1.1.FINAL:

       

      ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.

       

      Any idea why?

       

      My caches do have an eviction policy configured:

       

       

      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="urn:infinispan:config:5.0 http://www.infinispan.org/schemas/infinispan-config-5.0.xsd"
       xmlns="urn:infinispan:config:5.0">
       <!-- <global> <globalJmxStatistics enabled="true" /> </global> -->
       <default>
        <transaction
         transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
         syncRollbackPhase="false" syncCommitPhase="false" useEagerLocking="false" />
        <invocationBatching enabled="true" />
        <loaders passivation="true" shared="true" preload="true">
         <loader class="org.infinispan.loaders.file.FileCacheStore"
          fetchPersistentState="true" purgerThreads="3" purgeSynchronously="true"
          ignoreModifications="false" purgeOnStartup="false">
          <!-- See the documentation for more configuration examples and flags. -->
          <properties>
           <property name="location"
            value="../server/default/data/CacheStore" />
          </properties>
          <!-- C:/jboss/jboss-6.0.0.Final/server/default/data/ForecastCacheStore -->
          <async enabled="true" flushLockTimeout="15000" threadPoolSize="5" />
         </loader>
        </loaders>
       </default>
       <namedCache name="Cache1">
        <jmxStatistics enabled="true" />
        <eviction strategy="LIRS" maxEntries="60000" />
        <expiration lifespan="57600000" maxIdle="57600000"
         wakeUpInterval="300000" />
       </namedCache>
       <namedCache name="Cache2">
        <jmxStatistics enabled="true" />
        <eviction strategy="LIRS" maxEntries="60000" />
        <expiration lifespan="57600000" maxIdle="57600000"
         wakeUpInterval="300000" />
       </namedCache>
       <namedCache name="Cache3">
        <jmxStatistics enabled="true" />
        <eviction strategy="LIRS" maxEntries="500" />
        <expiration lifespan="57600000" maxIdle="57600000"
         wakeUpInterval="300000" />
       </namedCache>
       <namedCache name="Cache4">
        <jmxStatistics enabled="true" />
        <eviction strategy="LIRS" maxEntries="5000" />
        <expiration lifespan="57600000" maxIdle="57600000"
         wakeUpInterval="300000" />
       </namedCache>
       <namedCache name="Cache5">
        <jmxStatistics enabled="true" />
        <eviction strategy="LIRS" maxEntries="50" />
        <expiration lifespan="31536000000" maxIdle="31536000000"
         wakeUpInterval="6000000" />
       </namedCache>
       <namedCache name="Cache6">
        <jmxStatistics enabled="true" />
        <eviction strategy="LIRS" maxEntries="300" />
        <expiration lifespan="31536000000" maxIdle="31536000000"
         wakeUpInterval="6000000" />
       </namedCache>
       <namedCache name="Cache7">
        <jmxStatistics enabled="true" />
        <eviction strategy="LIRS" maxEntries="20" />
        <expiration lifespan="31536000000" maxIdle="31536000000"
         wakeUpInterval="6000000" />
       </namedCache>
       <namedCache name="Cache8">
        <jmxStatistics enabled="true" />
        <eviction strategy="LIRS" maxEntries="1000" />
        <expiration lifespan="31536000000" maxIdle="31536000000"
         wakeUpInterval="300000" />
       </namedCache>
       <namedCache name="Cache9">
        <jmxStatistics enabled="true" />
        <eviction strategy="LIRS" maxEntries="5000" />
        <expiration lifespan="57600000" maxIdle="57600000"
         wakeUpInterval="300000" />
       </namedCache>
      </infinispan> 
      
      
        • 1. Re: passivation configured without an eviction policy with 5.1.1.FINAL
          jaydev Newbie

          Any one?  I do not understand why I am getting this warning since I do have a loader and I do implement eviction on all caches...

          • 2. Re: passivation configured without an eviction policy with 5.1.1.FINAL
            Galder Zamarreño Master

            Well, all the defined ones. Can you check the code to see which cache names your retrieving from the cache manager?

             

            If there's any cache name that is not amongst the named cache ones, you'll get that warning because the default cache has no eviction element, and this is the template cache config used for any other cache that's not named.

            • 3. Re: passivation configured without an eviction policy with 5.1.1.FINAL
              jaydev Newbie

              Thanks for the reply.  All my caches are named caches.

               

              Here is the code that instantiates them:

               

              @PostConstruct
              public void init() {
              try {
                manager = new 
              DefaultCacheManager("infinispan-config.xml");
              } catch (IOException e) {
                
              e.printStackTrace();
              } 
              manager.startCaches("Cache1", "Cache2",
                 
              "Cache3", "Cache4", "Cache5", "Cache6",
                 "Cache7", "Cache8", 
              "Cache9");
              TreeCacheFactory factory = new 
              TreeCacheFactory();
              securityCache = 
              factory.createTreeCache(manager.getCache("Cache1"));
              securityForecastReturnCache 
              = 
              factory.createTreeCache(manager.getCache("Cache2"));
              forecastReturnTypeCache 
              = manager.getCache("Cache3");
              forecastElementCache = 
              manager.getCache("Cache4");
              entityForecastReturnCache = 
              factory.createTreeCache(manager.getCache("Cache5"));
              forecastElementDataCache 
              = factory.createTreeCache(manager.getCache("Cache6"));
              perfModelCache = 
              manager.getCache("Cache7");
              riskFactorCache = 
              factory.createTreeCache(manager.getCache("Cache8"));
              riskFactorForecastReturnCache 
              = factory.createTreeCache(manager.getCache("Cache9"));
              }
              
              

               

              As you can see in the config file, all caches are accounted for and implement eviction.

               

              The message that I get:

               

               

              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [INFO ] [EvictionConfigurationBuilder][validate] ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
              03/20/12 10:49:37 [WARN ] [GenericTransactionManagerLookup][useDummyTM] ISPN000104: Falling back to DummyTransactionManager from Infinispan
              03/20/12 10:49:37 [INFO ] [GlobalComponentRegistry][start] ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.1.FINAL
              03/20/12 10:49:37 [INFO ] [CacheJmxRegistration][start] ISPN000031: MBeans were successfully registered to the platform mbean server.
              03/20/12 10:49:37 [INFO ] [CacheJmxRegistration][start] ISPN000031: MBeans were successfully registered to the platform mbean server.
              03/20/12 10:49:37 [INFO ] [CacheJmxRegistration][start] ISPN000031: MBeans were successfully registered to the platform mbean server.
              03/20/12 10:49:37 [INFO ] [CacheJmxRegistration][start] ISPN000031: MBeans were successfully registered to the platform mbean server.
              03/20/12 10:49:37 [INFO ] [CacheJmxRegistration][start] ISPN000031: MBeans were successfully registered to the platform mbean server.
              03/20/12 10:49:37 [INFO ] [CacheJmxRegistration][start] ISPN000031: MBeans were successfully registered to the platform mbean server.
              03/20/12 10:49:37 [INFO ] [CacheJmxRegistration][start] ISPN000031: MBeans were successfully registered to the platform mbean server.
              03/20/12 10:49:37 [INFO ] [CacheJmxRegistration][start] ISPN000031: MBeans were successfully registered to the platform mbean server.
              03/20/12 10:49:37 [INFO ] [CacheJmxRegistration][start] ISPN000031: MBeans were successfully registered to the platform mbean server.
              
              • 4. Re: passivation configured without an eviction policy with 5.1.1.FINAL
                Galder Zamarreño Master

                Hmm, weird. Julien, could you first try with 5.1.2.FINAL and if the messages are still there, open a JIRA in http://issues.jboss.org/browse/ISPN ?

                • 5. Re: passivation configured without an eviction policy with 5.1.1.FINAL
                  jaydev Newbie

                  I still have the same issue when upgrading to 5.1.2.FINAL so I will need to submit a JIRA item.