How to get size of data in Infinispan cache, alternate for calculateInMemorySize of ehcache?

牧云@^-^@ 提交于 2019-12-23 14:56:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!