Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Memory Commit size and Used Memory?

801937Jun 7 2011 — edited Jun 9 2011
Dear 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2011
Added on Jun 7 2011
5 comments
11,884 views