Hi, On Tue, Apr 17, 2018 at 8:33 PM, Deepesh Malviya <deep0...@gmail.com> wrote:
> Hi, > > I have read this post - http://apache-ignite-users. > 70518.x6.nabble.com/Cache-Destroy-Space-reclaim-td17208.html > > I have few questions > 1. Does this post is still true? > Yes. > 2. If cache destroy is called and is recreated, will it use same space or > it will be new allocation on off-heap? > Not necessarily the same space, but it will try to reuse what's already available. If Ignite has an already allocated chunk of memory that is not used by other caches, it will use it. Otherwise, a new chunk will be allocated. Other words, if you create, fill and destroy a cache 100 times, Ignite will not allocate memory 100 times, it will reuse what's already allocated. 3. Is there anyway to reclaim memory from off-heap? > No. Instead, you can set the maximum size of a data region via DataRegionConfiguration.setMaxSize(). Once a data region hits maxSize, Ignite will not allocate more memory for the caches in that region. Stan