Ignite on-heap & off-heap caches

classic Classic list List threaded Threaded
3 messages Options
ashishb888 ashishb888
Reply | Threaded
Open this post in threaded view
|

Ignite on-heap & off-heap caches

I have below question:

Do both on-heap & off-heap caches use memory from data regions (by setting
initial & max
of DataRegionConfiguration)?

Does Ignite use heap provided to the application (-Xms & -Xmx) for cache
storage?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
aealexsandrov aealexsandrov
Reply | Threaded
Open this post in threaded view
|

Re: Ignite on-heap & off-heap caches

Hi,

No, heap and off-heap memory are different features.

Heap memory uses -Xms and -Xmx option to allocate the memory used for different operations and generally can't be used for data storing (in case of you don't set on-heap caching). Java GC will work with current memory.

Off-heap memory uses initial and max properties for region size that should be set in the data region configuration. This memory will be used for data storage. Java GC will not work with current memory.

You can read more here:

https://apacheignite.readme.io/docs/memory-architecture

BR,
Andrei

11/28/2019 3:36 PM, ashishb888 пишет:
I have below question:

Do both on-heap & off-heap caches use memory from data regions (by setting
initial & max 
of DataRegionConfiguration)? 

Does Ignite use heap provided to the application (-Xms & -Xmx) for cache
storage? 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ashishb888 ashishb888
Reply | Threaded
Open this post in threaded view
|

Re: Ignite on-heap & off-heap caches

Thank you Andrei.

So for on-heap cache I need set Xms and -Xmx option to allocate the memory.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/