Sure, you can have a look at VisorCache.estimateMemorySize sources if you really needs this.
— Denis > On May 22, 2016, at 1:28 AM, Tomek W <[email protected]> wrote: > > Ok, maybe something that use ignitevisorcmd ? > > 2016-05-21 21:44 GMT+02:00 Denis Magda <[email protected] > <mailto:[email protected]>>: > 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] > > <mailto:[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 > > > > <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. > >
