Home  >  Article  >  Java  >  Java virtual machine learning - JDK visual monitoring tool

Java virtual machine learning - JDK visual monitoring tool

黄舟
黄舟Original
2017-02-17 10:35:291360browse

1.JConsole

The JConsole tool is in the JDK/bin directory. After starting JConsole, it will automatically search for the jvm process running on the local machine. No jps command is needed to query and specify. Double-click one of the jvm processes to start monitoring, or use "remote process" to connect to the remote server.



#Enter the JConsole main interface, There are six tabs: "Overview", "Memory", "Threads", "Classes", "VM Summary" and "Mbean":


##The memory tab is equivalent to the jstat command, which is used to monitor the change trend of virtual machine memory (Java heap and permanent generation) managed by the collector. You can also observe the time and number of all GC executions in the detailed information column.


Thread tab


# #The last commonly used tab, the VM tab, can clearly understand and display the specified JVM parameters and heap information.

2.VisualVM

VisualVM is a visual tool that integrates multiple JDK command line tools. VisualVM is developed based on the NetBeans platform. It has the feature of plug-in extension function. Through plug-in extension, it can be used to display the virtual machine process and its configuration and environment information (jps, jinfo), and monitor the CPU, GC, heap, and methods of the application. Area and thread information (jstat, jstack), etc. VisualVM is in the JDK/bin directory.

Install the plug-in: Tools - Plug-in


VisualVM main interface


Generate dump file in VisualVM:

3.
jprofiler

See another jprofiler installation diagram

The above is the content of Java virtual machine learning-JDK visual monitoring tool. For more related content, please pay attention to PHP Chinese Net (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn