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.