There are many valid command-line tools in the Bin directory of the jdk, which are the encapsulation of the Jdk\lib\toos.jar class Library.
first, jps: virtual machine process status tool, query out Lvmid.
second, jstat: Virtual Machine Statistics monitoring tool,
three, Jinfo:java Configuration Information tool
View and adjust the parameters of a virtual machine in real Time.
Iv. Jmap:java memory Image Tool: generating a heap dump snapshot
Not only can you get the dump file, you can query the details of the finalize execution queue, the Java heap and the permanent generation, the empty space usage, the current collector, and so On.
V. jhat: virtual machine heap dump snapshot analysis tool
Vi. Jstack:java Stack Trace Tool
Generate a thread snapshot of the current moment of the virtual machine: a thread snapshot is a collection of method stacks that each thread in the current virtual machine is executing, primarily to locate the cause of a long pause on the thread, such as thread deadlock.
In addition to the command-line tools in the jdk, there are two visualizer tools Available. Jconsole and Visualvm.
I. Jconsole:java monitoring and Management console
jmx-based visual monitoring and Management Tools.
second, VisualVM: Multi-in-a-fault Processing Tool.
Built on the NetBeans platform with plug-in extension capabilities.
thirdly, Btrace is a very useful tool.
In-depth understanding of Java Virtual Machine reading notes four performance monitoring and fault handling tools