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.).
source share