In-depth understanding of Java Virtual Machine reading notes four performance monitoring and fault handling tools

Source: Internet
Author: User
Tags stack trace visualvm jconsole

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.