[Solved] Why the heap is changing in java


I understand the question to be why the heap size drops from 1500m (1472000K) to something less (1258752K) even though initial size is set to 1500m.

As it turns out, this is well known behavior in long running JVMs, and is related to the PS MarkSweep / Full GC mechanism – See this article for a good writeup.

Cheers,

solved Why the heap is changing in java