I am new to Java, I just gone through heap dump analysis using eclispe’s MAT. So i just wanted to below points
a) understand what is Shallow and retained heap size and how it is being calculated? It would be great if you provide example.
b) For performance issue,most of people adviced me to keep minimum and maximum heap size same, so is is ok or it is subjective to application to application?
I am new to Java, I just gone through heap dump analysis using eclispe’s
Share
Shallow heap is the memory consumed by one
object. An object needs 32 or 64 bits (depending on the OS architecture) per reference, 4 bytes per Integer, 8 bytes per Long, etc. Depending on the heap dump format the size may be adjustedRetained heap of X is the sum of shallow sizes of all objects in the retained set of X, i.e. memory kept alive by X.
Refer this link.