Difference between JDK 6 & 7 on Native Memory usage

Stefan Karlsson stefan.karlsson at oracle.com
Tue Dec 3 14:26:18 UTC 2013


On 2013-11-12 06:54, Arun Avanathan wrote:
> Hi All,
>
> We saw few weird behavior in JDK 1.7 memory usage. When we run "top" 
> command it shows JVM consuming native (resident) memory more than JDK 
> 1.6. And it keeps rising up.  We do understand we have a memory leak, 
> but why are seeing this more in JDK 1.7 compared with JDK 1.6?
>
> Is there a specific difference between JDK 1.6 & 1.7 to explain this?

In JDK7 we changed from using the Serial GC to the Parallel Old GC, 
which uses more native memory for different data structures. Try to run 
JDK7 with -XX:-UseParallelOldGC  and see if you still see a difference 
in the memory usage.

StefanK

>
> Thanks
> Arun




More information about the hotspot-gc-dev mailing list