JConsole is a JMX (Java Management Extension) complaint monitoring and management tool. Using this tool a user can monitor a local or a remote Java process (having a connection with the machine on which JConsole is running). This monitoring tool also allows the user to perform a set of predefined operations on the JMX Agent i.e the Java process that is being monitored. For instance, during run time, if the user wants to fetch the value of a variable or the content of an array. The user can perform this operation using MBeans.
Various parameters such as memory, threads, CPU utilization among other essential attributes can be measured using J Console. Java Platform has built in support for profiling and monitoring Java Virtual Machine(JVM) using the JMX technology. Using this built in support you can not only monitor your stand alone applications but also web containers such as Apache Tomcat, JBoss etc.
You will learn the following concepts after completion of this tutorial.
Memory Analysis.
Thread Analysis.
CPU Utilization.
MBeans
You should have the basic knowledge of Java programming language since the tutorials contain multiple examples of Java Code.
Using JConsole has the following advantages.
Using JConsole has the following disadvantages.
Even though JConsole lacks in the set of functionality that the other tools provide, it is important to first understand the basics of the monitoring tool. The basic understanding will help you in understanding the more complex features of other alternates such as JVisualVM.
To all the developers, please do share this tutorial on various social media platforms if you find it useful.