Hi, I've looked at sources.
If memMode == OFFHEAP_TIERED, but offHeapMaxMemory < 0 then offHeapMaxMemory will be setted to unlimited '0'. Try to debug after starting a cache, and look at IgniteCache#getConfiguration(CacheConfiguration.class) and getOffHeapMaxMemory, it must be '0' 2017-04-26 21:16 GMT+03:00 javastuff....@gmail.com <javastuff....@gmail.com> : > 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. > -- Best Regards, Vyacheslav