How to get prints of shared object memory maps or heap memory maps for a given process?
(a) jmap
(b) memorymap
(c) memorypath
(d) jvmmap
I have been asked this question in unit test.
Origin of the question is Heap and Garbage Collection in division Classes and Methods of Java