HP (Hewlett-Packard) 5992-1918 Manual Do Utilizador

Página de 78
As of JDK 1.5, the following subset of jvmstat tools is included with the JDK: jps (formerly
jvmps
) , jstat (formerly jvmstat), and jstatd (formerly perfagent). The visualgc tool
is not included with JDK 1.5+, but is instead provided in the unbundled jvmstat 3.0 distribution.
For more details, refer to the following website:
1.20 -verbose:class
The -verbose:class option displays information about each loaded class. It enables logging
of class loading and unloading.
1.21 -verbose:gc
The -verbose:gc option enables logging of garbage collection (GC) information. It can be
combined with other Java VM specific options such as -XX:+PrintGCDetails and
-XX:+PrintGCTimeStamps
to retrieve more information about the GC. The information output
includes the size of the generations before and after each GC, total size of the heap, the size of
objects promoted, and the time taken.
These options along with detailed information about GC analysis and tuning, are described at
Sun's GC portal site:
The -verbose:gc option can be dynamically enabled at runtime using the management API
or JVMTI. The jconsole monitoring and management tool can also enable or disable this option
when attached to a management Java VM.
For other GC logging options, see
1.22 -verbose:jni
The -verbose:jni option enables logging of Java Native Interface (JNI). Specifically, when a
JNI native method is resolved, the Java VM prints a trace message to the application console
(standard output). It also prints a trace message when a native method is registered using the
JNI RegisterNative() function. The -verbose:jni option may be useful when trying to
diagnose issues with applications that use native libraries.
1.23 visualgc
The visualgc tool uses jvmstat technology to provide visualization of garbage collection activity
in the Java VM. The Java VM shipped with JDK 1.4.2 and later releases provides the always-on
instrumentation needed to support monitoring tools and utilities such as visualgc.
As of JDK 1.5+, the following subset of the jvmstat tools is included with the Java VM: jps
(formerly jvmps), jstat (formerly jvmstat), and jstatd (formerly perfagent). visualgc
is not included in this set, but is instead provided in the unbundled jvmstat 3.0 distribution. The
download for jvmstat 3.0 may be found at:
visualgc
attaches to a running Java VM processs to collect and graphically display garbage
collection, class loader, and Java compiler performance data.
The target Java VM is identified by its virtual machine identifier, or vmid. On HP-UX, the vmid
is the process id of the running Java application.
For details on visualgc usage refer to:
When visualgc is attached to a running Java VM it opens the following windows:
42
Diagnostic and Monitoring Tools and Options