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

Descargar
Página de 78
$ /opt/java1.5/bin/jconsole 13028
The following figure shows a jconsole screen shot:
Figure 1-16 jconsole Screen
jconsole
can also be run remotely. To learn more about jconsole, including remote invocation,
refer to the following website:
1.14 jdb
The SDK includes a command-line debugger, jdb, to help you find and fix bugs in Java programs
running on a local or remote Java machine. Refer to the following website for more information:
A jdb tutorial may be found at:
1.15 jhat
Beginning with JDK 6.0, jhat is included with the standard JDK distribution. This tool can be
used for heap analysis; it is an improved version of hat. It starts a web server on a binary-format
heap dump file produced by one of the heap dump options such as
or -Xrunhprof:heap=dump,format=b.
Following in an example using jhat. The first command generates a binary heap dump file. The
second command invokes jhat on the binary heap profile.
$ java -Xrunhprof:heap=dump,format=b MyApp
$ jhat -port=7002 java.hprof
The jhat tool sets up an http server on the specified port. It can then be accessed by bringing
up the default page in a web browser, for example, http://<hostname.domain>:7002. If
you run hat on the same system as the browser, the server can be accessed by navigating to the
URL http://<hostname.domain>:7002.
For more information on jhat, refer to the following website:
1.14 jdb
39