[node04] ~ ➜ jdk1.7.0_51/bin/java -Xms31g -Xmx31g -Xmn50m Memory Total Memory (in bytes): 33279705088 Free Memory (in bytes): 33278908064 Max Memory (in bytes): 33279705088 Elements created and added to LinkedList: 587889429 The parameters cause the JVM heap to be 31GB big, and the space used for object allocation only 50MB. Lets try a higher max memory setting of 32GB and see what happens: [node04] ~ ➜ jdk1.7.0_51/bin/java -Xms32g -Xmx32g -Xmn50m Memory Total Memory (in bytes): 34353446912 Free Memory (in bytes): 34352649800 Max Memory (in bytes):
Read full article from Why 35GB Heap is Less Than 32GB - Java JVM Memory Oddities - codecentric Blog
No comments:
Post a Comment