I am getting numeric value of 1294736 in 'retained Heap' column when I use Memory Analyzer in Eclipse-Helios, what is the unit of this numeric value ? is it bytes or kBytes?
Same query for shallow heap value.
Shallow heap is the memory consumed by one object. Retained set of X is the set of objects which would be removed by GC when X is garbage collected. Retained 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.
Use the Eclipse Memory Analyzer You may need to refresh your project (F5 on the project). Double-click the file and select the Leak Suspects Report. The overview page allows you to start the analysis of the heap dump. The dominator tree gives quickly an overview of the used objects.
Eclipse Memory Analyzer Tool ( MAT ) is used for analyzing heap dump files which contain objects in memory. Each heap dump file can be thought of as a snapshot in time and details the memory occupied by specific JVM threads.
Open Eclipse MAT To open the heapdump, go to File > Open Heap Dump (Not Acquire Heap Dump) and browse to your heapdump location.
I had the same question. It seems to be in bytes. You can confirm this by writing a simple java program that repeated add stuff to a list, then run it with "java -Xmx2m -XX:+HeapDumpOnOutOfMemoryError" to max its heap usage to 2M, and dump the heap when it becomes full, then load the hprof file into the tool to verify.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With