How to get data size in Infinispan cache, alternative for calculating InMemorySize ehcache?

I am switching from ehcache to infinispan. In ehcache we have

net.sf.ehcache.Cache.calculateInMemorySize() 

to calculate the size of the memory.

How to calculate memory size at infinity?

+4
source share
1 answer

Thomas is right, there is currently no way to calculate the size of the data in memory. However, we provide users with some of the memory cost recommendations Infinispan brings , which helps users plan their memory requirements. Calculating the size of data in memory is not trivial to achieve and requires taking into account many subtle details (JVM type, architecture, etc.).

+1
source

Source: https://habr.com/ru/post/1486241/


All Articles