NonHeap memory usage metrics don't work as expected.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NonHeap memory usage metrics don't work as expected.

Vladislav Pyatkov
Igniters,

I trying to solve https://issues.apache.org/jira/browse/IGNITE-2616
I see that the grid output statistics we use MemoryMXBean
(GridDiscoveryManager.java:150) and it does not take what we expect.
We have own implementation for manipulationg with offheap memory:
GridUnsafeMemory
which stores the necessary information .GridUnsafeMemory#systemAllocatedSize
Why do not we create a MBean based GridInsafeTetory?
Can someone understood better and can offer a solution?
Reply | Threaded
Open this post in threaded view
|

Re: NonHeap memory usage metrics don't work as expected.

Denis Magda
Hi Vlad,

In my understanding you should include in the metrics information provided by GridCacheAdapter.offHeapAllocatedSize().
This has to be done for every offheap based cache. This information should be accumulated with the one that is already considered in GridDiscoveryManager at the time the metrics are being created.

Also probably Alexey Kuznetsov can suggest a solution here because as far as I recall Visor command line has an ability of total off heap usage calculation.


Denis

> On May 27, 2016, at 2:45 PM, Vladislav Pyatkov <[hidden email]> wrote:
>
> Igniters,
>
> I trying to solve https://issues.apache.org/jira/browse/IGNITE-2616
> I see that the grid output statistics we use MemoryMXBean
> (GridDiscoveryManager.java:150) and it does not take what we expect.
> We have own implementation for manipulationg with offheap memory:
> GridUnsafeMemory
> which stores the necessary information .GridUnsafeMemory#systemAllocatedSize
> Why do not we create a MBean based GridInsafeTetory?
> Can someone understood better and can offer a solution?