8 Replies Latest reply: Mar 21, 2012 5:17 PM by Dan Berindei RSS

Additional memory consumption | ConcurrentHashMap

nit wit Newbie

I noticed that while using Infinispan cache, following objects end up taking roughly the same amount of memory as the Raw Data Objects stored in the Infinispan Map. 

 

java.util.concurrent.ConcurrentHashMap$Segment

java.util.concurrent.locks.ReentrantLock$NonfairSync

java.util.concurrent.ConcurrentHashMap$HashEntry[]

java.util.concurrent.ConcurrentHashMap$Segment[]

 

Just wondering if others have noticed the same. If yes, are there ways to release this memory or avoid this? This causes our memory footprint to double! - I'm using Infinispan5.1.1.final

 

Any pointers would be greatly appreciated.

 

Thanks