Alex, This is a good point, thanks for bringing it up. I created a ticket to add this in one of the future releases: https://issues.apache.org/jira/browse/IGNITE-1311
For now, if you want to have better control on memory consumption, I would recommend to switch to offheap memory. It's more compact because it never stores deserialized value and allows to limit the amount of allocated memory. And also there is CacheMetrics.getOffHeapAllocatedSize() that tells how much memory is already allocated. You can refer to this documentation page for more details: https://apacheignite.readme.io/docs/off-heap-memory -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cache-entry-cost-and-total-cache-memory-footprint-would-be-nice-tp1151p1173.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
