You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by ashishb888 <as...@gmail.com> on 2019/11/22 09:48:39 UTC
Actual size of Ignite caches
How to get the actual size of caches? And do Ignite cache use heap size
provided to the application at the time of starting?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Actual size of Ignite caches
Posted by Igor Belyakov <ig...@gmail.com>.
Hi,
You can use "TotalAllocatedSize" data region metric to get information
regarding total used memory by the data region. More about metrics can be
found here:
https://apacheignite.readme.io/docs/memory-metrics#section-getting-metrics
Ignite stores cache data in off-heap memory(except near caches), you can
configure data regions sizes that will be used for caches by using
"initialSize" and "maxSize" properties in data region definition, as
described here:
https://www.gridgain.com/docs/8.7.6/developers-guide/memory-architecture/data-regions#configuring-default-data-region
Regards,
Igor Belyakov
On Fri, Nov 22, 2019 at 12:48 PM ashishb888 <as...@gmail.com>
wrote:
> How to get the actual size of caches? And do Ignite cache use heap size
> provided to the application at the time of starting?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: Actual size of Ignite caches
Posted by Prasad Bhalerao <pr...@gmail.com>.
You can also get the approx size by enabling persistence. With this you can
get the apporx size of each cache in bytes by checking the folder size of
each cache.
On Fri 22 Nov, 2019, 7:23 PM Mikael <mikael-aronsson@telia.com wrote:
> Don't think there is any direct way to do it, but you can read out the
> metric for your data regions and see how much memory is used and how
> much is free, that would give you a good indication of memory usage
>
> Den 2019-11-22 kl. 13:01, skrev ashishb888:
> > Yes I am talking about physical size in bytes. How to get it?
> >
> >
> >
> > --
> > Sent from: http://apache-ignite-users.70518.x6.nabble.com/
> >
>
Re: Actual size of Ignite caches
Posted by Mikael <mi...@telia.com>.
Don't think there is any direct way to do it, but you can read out the
metric for your data regions and see how much memory is used and how
much is free, that would give you a good indication of memory usage
Den 2019-11-22 kl. 13:01, skrev ashishb888:
> Yes I am talking about physical size in bytes. How to get it?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: Actual size of Ignite caches
Posted by ashishb888 <as...@gmail.com>.
Yes I am talking about physical size in bytes. How to get it?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Actual size of Ignite caches
Posted by Mikael <mi...@telia.com>.
Hi!
Are you talking about size as in number of entries or physical size in
bytes ?
Ignite put most of the cache contents off heap, you create data regions
(off heap) where the cache contents are allocated (there is a default
data region), depending on configuration some contents of the cache can
be on heap also (to improve on serialization/deserialization performance).
Mikael
Den 2019-11-22 kl. 10:48, skrev ashishb888:
> How to get the actual size of caches? And do Ignite cache use heap size
> provided to the application at the time of starting?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>