ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hitesh <hiteshnandwan...@gmail.com>
Subject Re: Evictions started (cache may have reached its capacity). You may wish to increase 'maxSize' on eviction policy being used for cache
Date Wed, 03 Jan 2018 10:51:00 GMT
Here its my cache configuration,

CacheConfiguration<String, WebSocketClient> cacheCfg = new
CacheConfiguration(cacheName);
			
			cacheCfg.setOnheapCacheEnabled(true);
			cacheCfg.setEvictionPolicy(new FifoEvictionPolicy<>(2));
			
		       cacheCfg.setCacheMode(CacheMode.PARTITIONED); // Default.
			
			cacheCfg.setIndexedTypes(String.class, WebSocketClient.class);
			
			cacheCfg.setAtomicityMode(CacheAtomicityMode.ATOMIC);
			
i have set max size 2 entries,when i am trying to put another entry its
showing eviction policy started ,but when i query its returning all 3
entries in the cache instead of recent two entries.
<http://apache-ignite-users.70518.x6.nabble.com/file/t1556/Capture.png> 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message