I have tried running the command
jmap -dump:format=b,file=jvm.hprof core.20170103.212745.20453.0007.dmp
But i get an error
Error attaching to remote server: java.rmi.UnknownHostException: Unknown host: core.20170103.212745.20453.0007.dmp; nested exception is:
java.net.UnknownHostException: core.20170103.212745.20453.0007.dmp
sun.jvm.hotspot.debugger.DebuggerException: java.rmi.UnknownHostException:
What is the error? I tried putting it on a TomCat server and running it but still throws an error
You are missing the "executable" parameter, so jmap thinks you're trying to connect to a remote host. try something like: