jmap prints shared object memory maps or heap memory details of a given process or core file or a remote debug server. shell
jmap -dump:format=b,file=c:\work\heapxx.bin 7388 spa
jhat -J-Xmx512m ./heapxx.bin