2 Minutes To Code (β Version)

'jhat' command - 2 minute tutorial

How to customize port for jhat server

If you need to start the webserver of jhat on a port other than 7000 (default port), you need to use the option -port. The complete command is jhat -port 8080 dump.hprof if you want to start the webserver on port 8080.

If you run jhat like this, the webserver can be accessed using the url http://localhost:8080