作用:JDK提供的用来分析jmap生成的dump文件工具
由于jhat命令在JDK9、JDK10中已经被删除,官方建议用VisualVM代替
使用
会开启一个HTTP/Web服务器,端口默认7000(可设置)
C:\Users\qianqian>jhat -port 6502 C:\Users\qianqian\qian.hprof
Reading from C:\Users\qianqian\qian.hprof...
Dump file created Fri May 13 13:43:17 CST 2022
Snapshot read, resolving...
Resolving 5753395 objects...
WARNING: Failed to resolve object id 0xc0646e08 for field DEFAULT_CONTEXT_CLASS (signature L)
...
...
...
Snapshot resolved.
Started HTTP server on port 6502
Server is ready.
查询超过指定大小 长度的字符串
对象占用