You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by monstereo <me...@gmail.com> on 2018/07/19 08:12:08 UTC
LRU policy, on heap - off heap size ?
Here is the my lru configuration
...
ccfg.setOnheapCacheEnabled(true);
ccfg.setEvictionPolicyFactory(new LruEvictionPolicyFactory<Integer,
Person>(2));
...
When I want to load 3 datas to cache, ignite console shows me
<http://apache-ignite-users.70518.x6.nabble.com/file/t1901/ignite-forum-1.png>
2 on heap and 3 off heap
why it is 2 on heap 1 off heap? Is it ignite features?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: LRU policy, on heap - off heap size ?
Posted by monstereo <me...@gmail.com>.
thanks
slava.koptilin wrote
> Hello,
>
> Yep, it is expected behavior. You are using on-heap eviction policy and
> so,
> this policy removes the cache entries from Java heap only. The entries
> stored in the off-heap region of the memory are not affected.
> You can find a comprehensive description here:
> https://apacheignite.readme.io/docs/evictions#section-java-heap-cache
>
> Thanks.
>
>
> чт, 19 июл. 2018 г. в 11:12, monstereo <
> mehmetozanguven@
> >:
>
>> Here is the my lru configuration
>>
>> ...
>> ccfg.setOnheapCacheEnabled(true);
>> ccfg.setEvictionPolicyFactory(new LruEvictionPolicyFactory<Integer,
> > Person>(2));
>> ...
>>
>> When I want to load 3 datas to cache, ignite console shows me
>> <
>> http://apache-ignite-users.70518.x6.nabble.com/file/t1901/ignite-forum-1.png>
>>
>>
>> 2 on heap and 3 off heap
>>
>> why it is 2 on heap 1 off heap? Is it ignite features?
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: LRU policy, on heap - off heap size ?
Posted by Вячеслав Коптилин <sl...@gmail.com>.
Hello,
Yep, it is expected behavior. You are using on-heap eviction policy and so,
this policy removes the cache entries from Java heap only. The entries
stored in the off-heap region of the memory are not affected.
You can find a comprehensive description here:
https://apacheignite.readme.io/docs/evictions#section-java-heap-cache
Thanks.
чт, 19 июл. 2018 г. в 11:12, monstereo <me...@gmail.com>:
> Here is the my lru configuration
>
> ...
> ccfg.setOnheapCacheEnabled(true);
> ccfg.setEvictionPolicyFactory(new LruEvictionPolicyFactory<Integer,
> Person>(2));
> ...
>
> When I want to load 3 datas to cache, ignite console shows me
> <
> http://apache-ignite-users.70518.x6.nabble.com/file/t1901/ignite-forum-1.png>
>
>
> 2 on heap and 3 off heap
>
> why it is 2 on heap 1 off heap? Is it ignite features?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>