问题
I am migrating from ehcache to infinispan. In ehcache we have
net.sf.ehcache.Cache.calculateInMemorySize()
to calculate in memory size.
How to calculate in memory size in infinispan?
回答1:
Tomas is right, there's no currently no way to calculate size of data in memory. We do however provide users with some guidelines on the memory overhead that Infinispan incurs, which helps users plan their memory requirements. Calculating the size of data in-memory is not trivial to achieve and requires a lot of subtle details to be taken into account (type of JVM, arquitecture...etc).
来源:https://stackoverflow.com/questions/17108701/how-to-get-size-of-data-in-infinispan-cache-alternate-for-calculateinmemorysize