1 Reply Latest reply on Jul 2, 2013 10:51 PM by Chao Wang

    a way to get infinispan cache statistics?

    Chao Wang Newbie

      In AS7/WFLY8 standalone-ha.xml or standalone-full-ha.xml configuration, the ejb3 subsystem defines an infinispan cache for clustered-cache-ref for stateful session bean passivation as follow:


      ... ...

      <stateful default-access-timeout="5000" cache-ref="simple" clustered-cache-ref="clustered"/>

      ... ...


           <cache name="simple" aliases="NoPassivationCache"/>

           <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>

           <cache name="clustered" passivation-store-ref="infinispan" aliases="StatefulTreeCache"/>


      ... ...


      It use an Infinispan-based backing cache entry store called InfinispanBackingCacheEntryStore at https://github.com/wildfly/wildfly/blob/master/clustering/ejb3-infinispan/src/main/java/org/jboss/as/clustering/ejb3/cache/backing/infinispan/InfinispanBackingCacheEntryStore.java?source=cc which does the inserting and passivation for stateful session bean instance by interacting with org.infinispan.Cache.


      Now, I'd like to display some deployement ejb metrics with the cache data, like how many SFSB are in cache, how many are passivated. Seems like I can't find a way to get them with the infinispan cache, do we have any means to retrieve the number of entries both in cache and in passivation store?