9 Troubleshooting Tools and Commands
You use JDK troubleshooting tools and commands to troubleshoot Java applications and the Java Virtual Machine (JVM).
The following sections describe the JDK troubleshooting tools and commands:
-
jcmd: You use the
jcmd
utility to send diagnostic command requests to a running Java Virtual Machine (JVM). -
jdb: You use the
jdb
command and its options to find and fix bugs in Java platform programs. -
jhsdb: You use the
jhsdb
tool to attach to a Java process or to a core dump from a crashed Java Virtual Machine (JVM).
Note:
Tools identified as Experimental are unsupported and might not be available in future JDK releases.
-
jinfo: Experimental You use the
jinfo
command to generate Java configuration information for a specified Java process. This command is experimental and unsupported. For core files usejhsdb
jinfo
. -
jmap: Experimental You use the
jmap
command to print details of a specified process. This command is experimental and unsupported. For core files usejhsdb
jmap
. -
jstack: Experimental You use the
jstack
command to print Java stack traces of Java threads for a specified Java process. This command is experimental and unsupported. For core files usejhsdb
jstack
.