There are two implications of this. First, for heaps that are
between 4 GB and 32 GB, use compressed oops.
Compressed oops are enabled using the
Java 7 and later versions, they are enabled by default whenever the maximum
heap size is less than 32 GB.
Second, a program that uses a 31 GB heap and compressed oops will usually be faster than a program that uses a 33 GB heap. Although the 33 GB heap is larger, the extra space used by the pointers in that heap means that the larger heap will perform more frequent GC cycles and have worse performance.
Share this highlighthttp://www.safaribooksonline.com/a/java-performance-the/4590/