Java Memory Commit size and Used Memory?
801937Jun 7 2011 — edited Jun 9 2011Dear all,
Does we control memory occupy by Java Application?
With my Application, JMX show the hug difference between Commit Memory and Used Memory? (Memory Commit size is 3.2G, but used Memory is just 1.8G)
How can I reduce Memory Commit Size?
My application use fix size HashMap.
ConcurentLinkedHashMap<Integer, Integer> clhm = ConcurentLinkedHashMap.create(EvictionPolicy.LRU, 1000000);
for(int i = 0; i< Integer.MAX_VALUE; i++){
clhm.put(i, i);
}
Thank a lot for support,
JPrefer