Hi 

I am using Partitioned, Atomic, OffHeap cache, creating cache pragmatically. 

Recently noticed offHeapMaxMemory is not set because of glitch in my
configuration and program. Based on java doc default offHeapMaxMemory value
is -1, specified by DFLT_OFFHEAP_MEMORY constant which means that off-heap
storage is disabled by default. 

I was not facing any issues for put, get and etc operation, so wondering
where does data gets cached? OffHeap/OnHeap.

/       try (Ignite ignite = Ignition.start("config/example-ignite.xml")) {
            CacheConfiguration<Integer, String> cacheCfg = new
CacheConfiguration<>();
            cacheCfg.setName(CACHE_NAME);
            cacheCfg.setCacheMode(CacheMode.PARTITIONED);
            cacheCfg.setAtomicityMode(CacheAtomicityMode.ATOMIC);
            cacheCfg.setMemoryMode(CacheMemoryMode.OFFHEAP_TIERED);

            try (IgniteCache<Integer, String> cache =
ignite.getOrCreateCache(cacheCfg)) {
                putGet(cache);
                putAllGetAll(cache);
            } finally {
                ignite.destroyCache(CACHE_NAME);
            }
     }/

Thanks,
-Sam



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Offheap-and-max-memory-tp12275.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to