1.JConsole
JConsoleUnder the JDK / bin directory, after starting JConsole, the tool automatically searches for JVM processes running natively without the JPS command to query for specifications. Double-click on one of the JVM processes to start monitoring, or use Remote Processes to connect to a remote server.
To enter the JConsole main interface, there are six tabs: “Overview”, “Memory”, “Thread”, “Class”, “VM Summary” and “Mbean”:
Memory tabs are the jstat commands used to monitor trends in virtual machine memory (Java heap and persistent generation) managed by the collector, as well as the time and number of executions of all GC in the detail bar.
Thread tab
The last frequently used page tab, VM page tab, can clearly show the specified JVM parameters and heap information.
2.VisualVM
VisualVMIt is a visualization tool that integrates multiple JDK command line tools. Visual VM is developed on the NetBeans platform. It has the feature of plug-in extension. It can be used to display the configuration and environment information of virtual machine processes and processes (jps, jinfo) through plug-in extension.Monitor the CPU, GC, heap, method area and thread information (jstat, jstack) of the application. VisualVM is in the JDK/bin directory.
Install plug-ins: Tools plugins
VisualVMMain interface
Generate dump files in VisualVM:
3.jprofiler
See another installation diagram for JProfiler.