I'm trying to convert JVM core dump to HPROF format with following command
jmap -dump:format=b,file=dump.hprof $(which java) core.dump.9
and getting the following error
Error: More than one non-option argument
Cannot connect to core dump or remote debug server. Use jhsdb jmap instead
What am I doing wrong and are there other tools to convert it? JDK is OpenJDK 11.0.4.
Since JDK 9 jmap
works only with a live JVM through the Dynamic Attach mechanism.
The 'forced' mode jmap -F
was replaced with a separate utility jhsdb.
Use the following command to produce a heap dump from a core file:
jhsdb jmap --binaryheap --dumpfile dump.hprof --exe /usr/local/openjdk-11/bin/java --core core.dump.9
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With