Hi,
Am using jboss 7.1.1 along with hibernate and infinispan for caching. Am struck with the statistics configuration.
Once the entities are loaded on to the cache, from jconsole i can get the following statistics readWriteRatio, evictions, timeSinceReset, elapsedTime, averageReadTime, removeHits, removeMisses
hitRatio, numberOfEntries , misses, hits, averageWriteTime, stores which is very useful.
However is there any way to get the statistics for the following scenarios:
1>Number of entities evicted because of max_idle expiration.
2>Number of entities evicted because of LRU eviction.
3>Heap space occupied by each entity cache regin.
What does the evictions attribute shown in jconsole actually indicate? max_idle eviction or LRU eviction.
The evictions attribute shown in jconsole shows 0 always.
Configuration in persistence.xml for cache:
--------------------------------------------------------------
<property name="hibernate.cache.infinispan.entity.eviction.strategy" value= "LRU"/>
<property name="hibernate.cache.infinispan.entity.expiration.wake_up_interval" value= "2000"/>
<property name="hibernate.cache.infinispan.entity.eviction.max_entries" value= "8"/>
<property name="hibernate.cache.infinispan.entity.expiration.max_idle" value= "180000"/>
<property name="hibernate.cache.infinispan.statistics" value="true"/>
<property name="hibernate.cache.use_second_level_cache" value="true"/>
Thanks,
Vedanth