Java Tools Tutorials - Herong's Tutorial Notes - Version 5.32, by Dr. Herong Yang
'jconsole' Command Options and Connection Window
This section describes the 'jconsole' command and its options. The connection window of the JDK 1.6 version is also included.
"jconsole": A graphical user interface tool that enables you to monitor and manage Java applications and virtual machines on a local or remote machine using the JMX technology.
The "jconsole" tool supports several command options, which can be obtained by the "-help" option:
C:\herong>\progra~1\java\jdk1.8.0\bin\jdb -help usage: jconsole [ -interval=n ] [ -notile ] [ -pluginpath <path> ] [ -version ] [ connection ... ] -interval Set the update interval to n seconds (default is 4 seconds) -notile Do not tile windows initially (for two or more connections) -pluginpath Specify the path that jconsole uses to look up the plugins -version Print program version connection = pid || host:port || JMX URL(service:jmx:<protocol>://...) pid The process id of a target process host A remote host name or IP address port The port number for the remote connection -J Specify the input arguments to the Java virtual machine on which jconsole is running
If you run the "jconsole" command without any option in JDK 1.8,
you will get the connection window as shown below:
This connection window allows you to specify the connection information from UI instead of the command line.
Last update: 2015.
Table of Contents