Hi, Take a look at documentation: https://apacheignite.readme.io/docs/memory-metrics
You can multiply TotalAllocatedPages on page size to get an estimation. On Tue, Oct 3, 2017 at 3:35 AM, pradeepchanumolu <[email protected]> wrote: > Hi , > > Can someone let me know how to get the stats of the cache like how large > (like how many MB/GB) is the cache in memory (both on and off heap)? > > Currently, I can only get number of entries in the cache using the > cache.size(CachePeekMode.ONHEAP), cache.size(CachePeekMode.OFFHEAP). > > cache.metrics() returns the Cache Metrics but doesn't have any methods to > return the total size in gb/mb of the cache in memory. > > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > > -- > Alexey Kuznetsov > <http://apache-ignite-users.70518.x6.nabble.com/> >
