Introduction to jhat
The jhat command is used in conjunction with the jmap command to analyze the heap dump files (heap dump snapshots) generated by jmap. jhat has a built-in miniature HTTP/HTML server. After analyzing the generated dump file, you can view the analysis results in the browser.
Using the jhat command, an http service will be started, and the default port is 7000.
Note: The jhat command has been deleted in JDK9 and JDK10, and the official recommendation is to use VisualVM instead.
jhat use
jhat /opt/1.hprof
select s from java.lang.String s where s.value.length>100