JVM command line monitoring tool jhat (Java Heap Analysis Tool)

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

insert image description here

jhat /opt/1.hprof

insert image description here
insert image description here
insert image description here

select s from java.lang.String s where s.value.length>100

jhat specified port

insert image description here

Guess you like

Origin blog.csdn.net/fengsheng5210/article/details/123668917