If jcmd doesn’t work for some reason, jmap is another option.
Just like before, find your PID using jps -l
, then run:
jmap -dump:format=b,file=heapdump.hprof <pid>
This will generate the heap dump file that you can analyze.
If jcmd doesn’t work for some reason, jmap is another option.
Just like before, find your PID using jps -l
, then run:
jmap -dump:format=b,file=heapdump.hprof <pid>
This will generate the heap dump file that you can analyze.