15 Troubleshooting

15 故障排查工具

Use these commands to troubleshoot Java applications and the Java Virtual Machine (JVM). Most of these commands are unsupported and experimental and might not be available in future JDK releases.

故障排查工具用于对Java应用和Java虚拟机(JVM)进行故障排除。 这些命令中的大多数都是实验性质的,官方不提供技术支持,在未来的JDK版本中还有可能不再内置。

This section contains the following commands:

包含以下命令:

jcmd: Sends diagnostic command requests to a running JVM.

jinfo: Experimental. Generates configuration information.

jhat: Experimental. Analyzes the Java heap.

jmap: Experimental. Prints shared object memory maps or heap memory details for a process, core file, or remote debug server.

jsadebugd: Experimental. Attaches to a Java process or core file and acts as a debug server.

jstack: Experimental. Prints Java thread stack traces for a Java process, core file, or remote debug server.


jcmd: 将诊断命令发送给正在运行中的JVM。

jinfo: 实验性质的工具。 生成配置信息。

jhat: 实验性质的工具。 分析Java堆。

jmap: 实验性质的工具。 为进程、核心文件或远程debug服务器打印输出共享对象内存映射或堆内存详细信息。

jsadebugd: 实验性质的工具。 附加到Java进程或核心文件,并充当调试服务器。

jstack: 实验性质的工具。 为Java进程,核心文件或远程调试服务器打印输出Java线程栈跟踪信息。

原文地址: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/s11-troubleshooting_tools.html