Hi,

Size in number of entries:

cache.size(CachePeekMode.ONHEAP)
cache.size(CachePeekMode.OFFHEAP)

cache.size(CachePeekMode.SWAP)

Size in bytes:
CacheMetrics.getOffHeapAllocatedSize
CacheMetrics.getSwapSize

To my knowledge there is no public API that returns size in bytes for ONHEAP 
portion of the heap. 

—
Denis

> On May 21, 2016, at 9:18 PM, tomk <[email protected]> wrote:
> 
> Hello,  
> How to check following thnigs:
> How many entries (rows) is loaded to off-heap.
> How many entries (rows) is loaded to on-heap 
> How many entries (rows) is swapped ?
> (better metric: GB/MB)
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://apache-ignite-users.70518.x6.nabble.com/statistics-of-cache-number-of-loaded-rows-to-particular-tires-tp5071.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to