Click to enter _ more _java thousand ask
1. What is Jconsole?
Jconsole is a Java Program Performance Analyzer that can be run from the command line or in a terminal. can be used to monitor the performance of Java programs and tracking code.
At the same time, a set of interfaces is provided in the Com.sun.tools.jconsole package, allowing access to Jconsole to analyze and count threads, memory, classes, and objects.
2. How to use the Jconsole tool
We mainly introduce the use of jconsole tools, in the Java_home/bin path, we can directly open him. Such as:
We can connect to a running local process or remote process, after a successful connection such as:
?
First, we see that Jconsole provides several charts to show some of the key metrics of a Java program, such as heap memory, threads, classes, CPU usage, and we can view the details by switching tab.
Through Jconsole, we are able to clearly understand the running state of the Java program, to facilitate our optimization and monitoring of his. The specific use is relatively simple due to the graphical interface.
Learn how to monitor JVM operation see here: How to monitor the operation of the JVM
Java thousand asked _08jdk detailed (018) _jconsole is what