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 -dumpoption to obtain a heap dump at runtime. Seejmap(1).Use the
jconsoleoption to obtain a heap dump throughHotSpotDiagnosticMXBeanat runtime. Seejconsole(1) and theHotSpotDiagnosticMXBeaninterface description athttp://docs.oracle.com/javase/8/docs/jre/api/management/extension/com/sun/management/HotSpotDiagnosticMXBean.htmlHeap dump is generated when an
OutOfMemoryErroris thrown by specifying the-XX:+HeapDumpOnOutOfMemoryErrorJava Virtual Machine (JVM) option.Use the
hprofcommand. 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
jhatHTTP 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 objectoare calculated, reference paths that involvejava.lang.String.valuefield 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
flagto the Java Virtual Machine on which thejhatcommand is running. For example,-J-Xmx512mto 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 代码,让编程变得更加轻松.目前,市面上涌现出越来越多的高 ...
随机推荐
- Chrome DevTools & performance optimization
Chrome DevTools & performance ptimization https://www.bing.com https://developers.google.com/web ...
- C#添加编译时间
using System.Reflection;using UnityEngine;using System.Collections; [assembly:AssemblyVersion( " ...
- Python(2)-- 运算符
1. 算术运算符 常规: 加(+).减(-).乘(*).除(/).取模(%) 此外: 幂(**):返回x的y次幂, eg: 2**3---返回 2 的 5 次幂,输出结果32 取整除(//):返回商的 ...
- 【BZOJ3895】取石子(博弈,记忆化搜索)
题意: Alice和Bob两个好朋含友又开始玩取石子了.游戏开始时,有N堆石子排成一排,然后他们轮流操作(Alice先手),每次操作时从下面的规则中任选一个:1:从某堆石子中取走一个2:合并任意两堆石 ...
- SQL索引基础
原文发布时间为:2011-02-19 -- 来源于本人的百度文章 [由搬家工具导入] 一、深入浅出理解索引结构 实际上,您可以把索引理解为一种特殊的目录。微软的SQL SERVER提供了两种索 ...
- 【转】SqlCacheDependency的使用 强大的功能
原文发布时间为:2009-10-25 -- 来源于本人的百度文章 [由搬家工具导入] 最近我在忙于研究负载平衡、并发性容错性等性能优化问题,ASP.NET有太多强大的功能等待学习和挖掘。今天, ...
- C#Url传递中文参数时解决方法
原文发布时间为:2008-11-05 -- 来源于本人的百度文章 [由搬家工具导入] 1.设置web.config文件。<system.web> <globalization req ...
- FileInputStream/FileOutputStream的应用
这是一对继承于InputStream和OutputStream的类,用于本地文件读写(二进制格式读写并且是顺序读写,读和写要分别创建出不同的文件流对象): 本地文件读写编程的基本过程为: ① 生成文 ...
- VC6.0工程改名(转)
只讨论对工程改名,其他文件和类的名字不改变,否则就很麻烦了. 操作步骤: (1)删除 .dsw 文件.改好了会再自动生成的: (2)以写字板或记事本方式打开.dsp文件: (3)将其中所有的原工 ...
- Python Challenge 第九关
第九关只有一幅图,上面有一些黑点.网页名字叫:connect the dots.可能是要把这些点连起来. 查看源代码,果然有两个整数集合 first 和 second.并且有个提示:first+sec ...