Heap dump in Java

jmap -J-d64 -dump:live,format=b,file=[filename] [pid]

One can then import the dump to jprofiler or jvisualvm

Advertisements