Unit of stored heap in eclipse?

I get the numerical value 1294736 in the Saved Heap column when I use the Memory Analyzer in Eclipse-Helios, what is the unit of this numerical value? is it bytes or kBytes?

The same query for a shallow heap value.

+7
source share
1 answer

I had the same question. It seems to be in bytes. You can confirm this by writing a simple java program that repeats adding material to the list and then running it using "java -Xmx2m -XX: + HeapDumpOnOutOfMemoryError" to make the most of its 2M heap and unload the heap when it is full, then upload the hprof file to the verification tool.

+6
source

All Articles