Infinispan File Cache Store size Increases after multiple puts -
i using leveldb cachestore infinispan 6.0.2 final facing issues.please find below code used cache
configurationbuilder config = new configurationbuilder(); leveldbstore strgbuilder = new leveldbstore(); configurationbuilder b = new configurationbuilder(); b.persistence() .addstore(leveldbstoreconfigurationbuilder.class).location("/home/tmpstore200").expiredlocation("/home/tmpexpiredlocation200").expiryqueuesize(10); b.eviction().strategy(evictionstrategy.lirs).maxentries(8).expiration().wakeupinterval(10000l).reaperenabled(true); b.jmxstatistics().enabled(true);
1)doing multiple puts on same key leads increment in size of store
for(int i=0;i<100;i++) c.put("k"+i,i);
running above loop 1 time results in size of cache store=128kb running above loop 1 time again results in cache store size increment 10kb running 1 time again results in cache store size 155kb
i unable find reason increment in cache store size while writing same key,value 1 time again , again
it's because leveldb doesn't overwrite entries.
infinispan
No comments:
Post a Comment