Troubleshooting Tools on Solaris OS and Linux for Java SE 5.0

Monitoring Tools
Debugging Tools


Monitoring Tools

JConsole

Launch a GUI to monitor and manage Java applications and Java VMs on a local or remote machine.

jps

List instrumented Java virtual machines.

jstat

Display performance statistics for an instrumented Java VM:

jstatd


Debugging Tools

Heap Analysis Tool (HAT)

Parse a binary heap dump, launch a web browser, and present standard queries.

For detailed information, see J2SE 5.0 Troubleshooting and Diagnostic Guide (pdf)

HPROF profiler

Writes class profiling information to a file or a socket, in ASCII or binary.

To invoke the HPROF tool: java -agentlib:hprof ToBeProfiledClass

To print the complete list of options: java -agentlib:hprof=help

jdb

Launch a simple interactive command-line debugger.

jinfo

Print Java configuration information (command line flags and system properties) for a running process, from a core file, or for a remote debug server.

jmap

Print memory information for a process, a core file, or a remote debug server.

jsadebugd

Serviceability Agent Debug Daemon, which acts as debug server.

jstack

Print stack traces of threads for a process, core file, or remote debug server