What tools to use to view memory overflow, with specific examples to explain the specific process

Source: Internet
Author: User
Tags visualvm

If the command is passed, it is generally called JPS to view the specific PID, then call Jstat to see the runtime memory, and the frequency of the GC, and then through Jstack to see if the thread is blocking, deadlock, looping, and so on, finally through Jmap generated heap snapshot to analyze memory overflow.

With Visual Tools:

In the case of jconsole, you can view the heap and the memory of each part through the memory window, and through the thread window you can see if the thread waits, loops, deadlocks, and so on.

is where the same VISUALVM can navigate to a specific memory overflow. Through the VISUALVM can observe the heap, the new generation, the old age, the permanent generation of the situation, also through the thread to see if there are blocking, looping, deadlock and so on. If there is a memory overflow situation, the first is to click on the heap snapshot in the Monitoring window, generate a snapshot, then analyze the heap snapshot, by analyzing the thread on the heap dump, navigate to the specific execution of the thread, and then you can specifically analyze the number of instances in the thread and size, and can be located in the program specific line of code, The code context is specifically written incorrectly.

What tools to use to view memory overflow, with specific examples to explain the specific process

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.