$ jmap -dump:format=b,file=<heapdump filename(hprof)> <pid>
$ gcore -o <core filename> <pid>
https://www.kernel.org/doc/Documentation/