You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by tomk <rr...@gmail.com> on 2016/05/21 18:18:12 UTC
statistics of cache - number of loaded rows to particular tires.
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.
Re: statistics of cache - number of loaded rows to particular tires.
Posted by Denis Magda <dm...@gridgain.com>.
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 <rr...@gmail.com> wrote:
>
> Ok, maybe something that use ignitevisorcmd ?
>
> 2016-05-21 21:44 GMT+02:00 Denis Magda <dmagda@gridgain.com <ma...@gridgain.com>>:
> 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 <rrrtomtomrrr@gmail.com <ma...@gmail.com>> 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.
>
>
Re: statistics of cache - number of loaded rows to particular tires.
Posted by Tomek W <rr...@gmail.com>.
Ok, maybe something that use ignitevisorcmd ?
2016-05-21 21:44 GMT+02:00 Denis Magda <dm...@gridgain.com>:
> 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 <rr...@gmail.com> 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.
>
>
Re: statistics of cache - number of loaded rows to particular tires.
Posted by Denis Magda <dm...@gridgain.com>.
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 <rr...@gmail.com> 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.