java查看工具jhat-windows
Analyzes the Java heap. This command is experimental and unsupported.
Synopsis
jhat [ options ] heap-dump-file
options
-
The command-line options. See Options.
- heap-dump-file
-
Java binary heap dump file to be browsed. For a dump file that contains multiple heap dumps, you can specify which dump in the file by appending
#<number>
to the file name, for example,myfile.hprof#3
.
Description
The jhat
command parses a Java heap dump file and starts a web server. The jhat
command lets you to browse heap dumps with your favorite web browser. The jhat
command supports predesigned queries such as show all instances of a known classMyClass
, and Object Query Language (OQL). OQL is similar to SQL, except for querying heap dumps. Help on OQL is available from the OQL help page shown by the jhat
command. With the default port, OQL help is available at http://localhost:7000/oqlhelp/
There are several ways to generate a Java heap dump:
Use the
jmap -dump
option to obtain a heap dump at runtime. Seejmap
(1).Use the
jconsole
option to obtain a heap dump throughHotSpotDiagnosticMXBean
at runtime. Seejconsole
(1) and theHotSpotDiagnosticMXBean
interface description athttp://docs.oracle.com/javase/8/docs/jre/api/management/extension/com/sun/management/HotSpotDiagnosticMXBean.html
Heap dump is generated when an
OutOfMemoryError
is thrown by specifying the-XX:+HeapDumpOnOutOfMemoryError
Java Virtual Machine (JVM) option.Use the
hprof
command. See the HPROF: A Heap/CPU Profiling Tool athttp://docs.oracle.com/javase/8/docs/technotes/samples/hprof.html
Options
- -stack false|true
-
Turns off tracking object allocation call stack. If allocation site information is not available in the heap dump, then you have to set this flag to
false
. The default istrue
. - -refs false|true
-
Turns off tracking of references to objects. Default is
true
. By default, back pointers, which are objects that point to a specified object such as referrers or incoming references, are calculated for all objects in the heap. - -port port-number
-
Sets the port for the
jhat
HTTP server. Default is 7000. - -exclude exclude-file
-
Specifies a file that lists data members that should be excluded from the reachable objects query. For example, if the file lists
java.lang.String.value
, then, then whenever the list of objects that are reachable from a specific objecto
are calculated, reference paths that involvejava.lang.String.value
field are not considered. - -baseline exclude-file
-
Specifies a baseline heap dump. Objects in both heap dumps with the same object ID are marked as not being new. Other objects are marked as new. This is useful for comparing two different heap dumps.
- -debug int
-
Sets the debug level for this tool. A level of 0 means no debug output. Set higher values for more verbose modes.
- -version
-
Reports the release number and exits
- -h
-
Displays a help message and exits.
- -help
-
Displays a help message and exits.
- -Jflag
-
Passes
flag
to the Java Virtual Machine on which thejhat
command is running. For example,-J-Xmx512m
to use a maximum heap size of 512 MB.
java查看工具jhat-windows的更多相关文章
- java查看工具jmap-windows
Prints shared object memory maps or heap memory details for a process, core file, or remote debug se ...
- java查看工具jstack-windows
Prints Java thread stack traces for a Java process, core file, or remote debug server. This command ...
- java查看工具jinfo-windows
Generates configuration information. This command is experimental and unsupported. Synopsis jinfo [ ...
- Java内存泄露分析和解决方案及Windows自带查看工具
Java内存泄漏是每个Java程序员都会遇到的问题,程序在本地运行一切正常,可是布署到远端就会出现内存无限制的增长,最后系统瘫痪,那么如何最快最好的检测程序的稳定性,防止系统崩盘,作者用自已的亲身经历 ...
- Windows日志查看工具合集
欢迎关注我的社交账号: 博客园地址: http://www.cnblogs.com/jiangxinnju GitHub地址: https://github.com/jiangxincode 知乎地址 ...
- Alibaba Java诊断工具Arthas查看Dubbo动态代理类
原创/朱季谦 阅读Dubbo源码过程中,会发现,Dubbo消费端在做远程调用时,默认通过 Javassist 框架为服务接口生成动态代理类,接着再去调用代理类实现远程接口调用.在阅读这部分源码时,最后 ...
- windows下apk查看工具的原理
游戏出了版本之后,提供给渠道,有部分渠道会修改包名(当他们内部系统做出调整后,可能会改包名),这个时候我又需要知道包名.之前没办法,试图反编译apk,发现失败了.然后就安装apk到手机上,手机上再下载 ...
- Atitit.java 虚拟机的构成 与指令分类 与 指令集合 以及字节码查看工具javjap
Atitit.java 虚拟机的构成 与指令分类 与 指令集合 以及字节码查看工具javjap 1.1. 虚拟机的构成 java虚拟机--处理器.堆栈.寄存器.指令系统. 1 1.2. 虚拟机执行过程 ...
- 【转】高效Java编程工具集锦
原文地址:http://geek.csdn.net/news/detail/57469 Java 开发者常常都会想办法如何更快地编写 Java 代码,让编程变得更加轻松.目前,市面上涌现出越来越多的高 ...
随机推荐
- [NOI2014][bzoj3670] 动物园 [kmp+next数组应用]
题面 传送门 思路 首先,这题最好的一个地方,在于它给出的关于$next$的讲解实在是妙极......甚至可以说我的kmp是过了这道题以后才脱胎换骨的 然后是正文: 如何求$num$数组? 这道题的输 ...
- DFA Minimization
有点晚了我就不调试了..不过说是这么说我还是过了编译的.. #include<bits/stdc++.h> using namespace std; namespace DFA{ cons ...
- 【10】【转】node 之 pipe机制----未理解
转载地址:http://blog.csdn.net/vieri_32/article/details/48376547 前言 前几天别人请教我关于pipe的问题,我发现我虽然用了nodejs很久,但是 ...
- POJ3687 Labeling Balls
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 13645 Accepted: 3955 Description Wind ...
- 控制台或Winform程序中如何编码或解码Server.URLEncode
原文发布时间为:2010-07-10 -- 来源于本人的百度文章 [由搬家工具导入] 在Asp.net中可以使用Server.HTMLEncode和Server.URLEncode 将文本或URL的特 ...
- SQL2005、SQL2008如何压缩日志文件(log) 如何清除日志
原文发布时间为:2010-11-01 -- 来源于本人的百度文章 [由搬家工具导入] ALTER DATABASE [DataBaseName] SET ...
- config .net webapi to return json.
1.add content negotiator using System; using System.Collections.Generic; using System.Linq; using Sy ...
- 把握linux内核设计思想系列【转】
转自:http://blog.csdn.net/shallnet/article/details/47734053 版权声明:本文为博主原创文章,未经博主允许不得转载.如果您觉得文章对您有用,请点击文 ...
- 用Gson解析没有数据头的纯数组json字符串
无数据头Json字符串 Json字符串只有数组,而次数组没有名字,如下 [ { "name": "zhangsan", "age": &qu ...
- MySQL的XA_prepare_event类型binlog的解析
为了支持新版的xa事务,MySQL新加了一种binlog event类型:XA_prepare 项目中使用的开源组件mysql-binlog-connector-java无法解析此种binlog ev ...