Is there anyway to get the size (total memory) used for each cache key item in Ignite.NET (C#)? The current method GetSize() provides the total number of cache entries in the cache.
Is there anyway to get the size (total memory) used for each cache key item in Ignite.NET (C#)? The current method GetSize() provides the total number of cache entries in the cache.
Finding out memory usage for a particular entry isn't really possible because of how the memory footprint is structured. Whenever you add an entry, you'll consume
So, instead of trying to understand the size of a particular entry, you normally want to understand the total used size of a data region. You can then divide that by the number of entries in the region to get the average entry size.
Here is the interface with the data region metrics.
To get the amount of memory currently occupied by all caches of the data region, you need to calculate TotalUsedPages * PageSize.