Hi,
I have a Hibernate application that has an Entity with 3 properties (two strings, one integer) and an Id. When I persist and cache an object of this entity and call cache.calculateInMemorySize(), I'm told by Ehcache that this object is using more than 1kbs in Ram. Caching 100k (100,000) objects uses up more than 100mbs according to cache.calculateInMemorySize().
Is this an expected behaviour with Hibernate + Ehcache?
Is the amount of RAM been used justifiable?
An application that demonstrates the situation is posted at the link below, any insight will be much appreciated.
http://forums.terracotta.org/forums/posts/list/5687.pageHibernate: 3.4.0.GA
Ehcache: 2.4.3
Thanks,
Yinka.