HP (Hewlett-Packard) 5992-1918 Manual De Usuario

Descargar
Página de 78
Table 1-2 Tools and Options for Debugging Hung and Deadlocked Processes
Description and Usage
Tool or Option
An HP-supported implementation of the gdb debugger
that has Java support. For simplicity, this document refers
to wdb/gdb as gdb from this point forward. gdb can be
used to attach to a running process.
wdb
Used to identify and diagnose performance problems in
Java applications running on HP-UX. It can also be used
to debug thread and heap issues.
Used to retrieve thread dump information. It also executes
a deadlock detection algorithm and reports any deadlocks
detected involving synchronized code. Heap dumps are
also generated beginning with JDK 1.5.0.05 and SDK
1.4.2.11 when the
option
is specified.
Used to observe memory allocation in a running Java
application by taking snapshots of the heap over time. It
can be set by providing the -XX:+HeapDump option or
setting the _JAVA_HEAPDUMP environment variable.
starting with JDK 1.5.0.03 and SDK 1.4.2.10
Creates a core image of a running process.
(11.31 only)
Java language debugger.
1.1.3 Fatal Error Handling
The following options are useful for retrieving more information when fatal errors occur:
Table 1-3 Options for Fatal Error Handling
Description and Usage
Option
Used to specify a sequence of user-supplied scripts or
commands to be executed when a crash occurs.
Used to suspend the process when a crash occurs. After
the process is suspended, the user can use
to attach
to the Java VM.
Enables dumping of the heap when an out of memory
error condition occurs in the Java VM.
, starting with
SDK 1.4.2.11 and JDK 1.5.0.04
1.1.4 Monitoring Memory Use
The following options and tools are useful for monitoring memory usage of running applications:
Table 1-4 Tools and Options for Monitoring Memory Use
Description and Usage
Tool
Used to identify and diagnose performance problems in
Java applications by examining and monitoring the heap
and threads.
HP's garbage collection (GC) visualization tool for
analyzing garbage collection activity in a Java program.
Used to observe memory allocation in a running Java
application by taking snapshots of the heap over time. It
can be set by providing the -XX:+HeapDump option or
setting the _JAVA_HEAPDUMP environment variable.
starting with JDK 1.5.0.03 and SDK 1.4.2.10
14
Diagnostic and Monitoring Tools and Options