Re: JMX-MBean Reports OffHeapAllocatedSize as zero

2018-04-11 Thread dkarachentsev
Hi Christoph,

This metric is not implemented because of complexity. But you may get to
know now much of space your cache or cashes consumes with DataRegionMetrics:
DataRegionMetrics drm = ignite.dataRegionMetrics("region_name");

long used = (long)(drm.getPhysicalMemorySize() * drm.getPagesFillFactor());

So if you don't use persistence and set custom data region for cache, you
can size, consumed by it.

Thanks!
-Dmitry



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: JMX-MBean Reports OffHeapAllocatedSize as zero

2018-04-11 Thread Christoph Weißenborn
Hi,
I step into the code and ended up in this method in
IgniteCacheOffheapManagerImpl:

@Override public long offHeapAllocatedSize() {
// TODO GG-10884.
return 0;
}

Is ticket GG-10884 about resolving this TODO or did it introduced this TODO?
Is there a schedule for this TODO? If yes, where/how can I find it?

KR, Christoph



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: JMX-MBean Reports OffHeapAllocatedSize as zero

2018-04-11 Thread Christoph Weißenborn
Hi Val and others,
same behavior with Ignite 2.4.0, MBean-CacheMetrics always report
OffHeapAllocatedSize zero.
Is this a bug, a feature/expected? Can I somehow change setup to get a
metric for off heap usage?

KR, Christoph



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: JMX-MBean Reports OffHeapAllocatedSize as zero

2018-04-10 Thread vkulichenko
Hi Christoph,

Can you try 2.4.0? I know there were some fixes for memory metrics, so there
is a big chance you will not reproduce the issue with the latest version.

-Val



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/