'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:
jconsole Connection Window

This connection window allows you to specify the connection information from UI instead of the command line.

Last update: 2015.

Table of Contents

 About This Book

 Java Tools Terminology

 Installing Java 8 on Windows

 'javac' - The Java Program Compiler

 'java' - The Java Program Launcher

 'jdb' - The Java Debugger

'jconsole' - Java Monitoring and Management Console

 JMX Technology and 'jconsole' Tool

'jconsole' Command Options and Connection Window

 'com.sun.management.jmxremote' - JMX Agent for Local Connection

 'jconsole' - Connecting to a Local JMX Agent

 'com.sun.management.jmxremote.port' - JMX Agent for Remote Connection

 'jconsole' - Connecting to a Remote JMX Agent

 'jstat' - JVM Statistics Monitoring Tool

 JVM Troubleshooting Tools

 jvisualvm (Java VisualVM) - JVM Visual Tool

 'jar' - The JAR File Tool

 'javap' - The Java Class File Disassembler

 'keytool' - Public Key Certificate Tool

 'native2ascii' - Native-to-ASCII Encoding Converter

 Outdated Tutorials


 PDF Printing Version