jconsole
Java Monitoring and Management Console
Synopsis
jconsole
[ options ] [ connection ... ]
add an example, a script, a trick and tips
examples
source
exec
/golf/local/j602/bin/jconsole $1
#exec /golf/local/j701/bin/jconsole
$1
#export HOME=/golf/local
#export LD_LIBRARY_PATH=$HOME/j601
#exec $HOME/j601/jconsole $1
description
The
jconsole command launches a graphical console tool
that enables you to monitor and manage Java applications and
virtual machines on a local or remote machine.
On Windows,
jconsole does not associate with a console window. It
will, however, display a dialog box with error information
if the jconsole command fails for some reason.
options
-interval=n
Set the update interval to
n seconds (default is 4 seconds).
-notile
Do not tile windows initially
(for two or more connections).
-pluginpath
plugins
Specify a list of directories
or JAR files which are searched for JConsole plugins. The
plugins path should contain a
provider-configuration file named:
META-INF/services/com.sun.tools.jconsole.JConsolePlugin
containing one
line for each plugin specifying the fully qualified class
name of the class implementing the
com.sun.tools.jconsole.JConsolePlugin class.
-version
Output version information and
exit.
-help
Output help message and
exit.
-J<flag>
Pass <flag> to the Java
virtual machine on which jconsole is run.
parameters
options
Options, if used, should follow immediately after the command
name.
connection = pid | host:port | jmxUrl
pid Process ID of a local Java VM. The
Java VM must be running with the same user ID as the user ID
running jconsole. See JMX Monitoring and Management for details.
host:port Name of the host system on which
the Java VM is running and the port number specified by the
system property com.sun.management.jmxremote.port when the
Java VM was started. See JMX Monitoring and Management for
details.
jmxUrl Address of the JMX agent to be connected
to as described in JMXServiceURL.
see also
o
Using JConsole
o
Monitoring and Management for Java Platform