I am using ignite 2.9. Native persistence is disabled.
Enabled on heap caching using
CacheConfiguration.setOnheapCacheEnabled(true)
But I can still see off-heap metrics in logs.
shouldn't it use only heap memory after making on-heap true?
What type of data gets stored off-heap?
How eviction works incase of eviction policy defined for default data region is random2Lru and LRU for on heap?
Solution
An on-heap cache is in addition to the off-heap storage.
So:
No
Anything you save into the cache/table
There are two kinds of eviction. Eviction on data regions is at the page level rather than the record level, so a number of records can be evicted together. On-heap cache works on a row level. Evicting a record from the on-heap cache does not evict it from the off-heap cache. Evicting from off-heap also evicts from the on-heap cache.