Java memory leak analysis using Eclipse memory Analyzer

Source: Internet
Author: User

One, install Eclipse Memory Analyzer

Find the address of the update site at Memory Analyzer's website:

Then: In the Eclipse interface--->help--->install New software--->add--->add reposity, and in location enter: Update Site address, you can install.

Two, raw piles dump file

This generates a heap dump file using the Jmap command.

Ctrl+alt+delete open Windows Task Manager, click: Process---> Find the PID of the currently running Eclipse/myeclipse process. "If the PID is not shown, you can click: View---> Select Columns--Check the PID

Once you know the PID of the process, you can use the following command to generate the dump file:

Jmap-dump:format=b,file=<dumpfile_name> <pid>

Third, analyze the heap dump file using the Eclipse Memory Analyzer plugin

After the heap dump file is generated, you can use Eclipse to open the file for analysis. Specific steps: Eclipse Interface: File--->open file---> Find heap dump files.

Supplemental: Windows under View process: Tasklist | findstr PID

View ports under Windows: Netstat-ano | Find "Port_number"

Resources:

Using Eclipse Memory Analyzer for heap dump file analysis

https://www.dynatrace.com/resources/ebooks/javabook/memory-leaks/

Java memory leak analysis using Eclipse memory Analyzer

Related Article

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.