Analyze memory leakage using jrockit Mission Control

Source: Internet
Author: User

Recently, we need to analyze the system memory leakage and use jrockit Mission Control to analyze the system memory leakage. This article describes how to use the Memory Leak analysis tool jrockit mission control.

I. Preparation tool jrockit Mission Control

1. Download jrockit JDK. The JDK already comes with the jrockit mission control tool. Currently, it seems that jrockit mission control has not been downloaded separately, and jrockit JDK has been bound for download;

2. If you need to analyze the memory leakage of Web applications, You need to replace the JDK used by Web applications with the corresponding JDK version of jrockit. You need to analyze it clearly, replace the original version with the appropriate jrockit version; for example, you can set java_home = D:/Java/jrockit-R27.3.1-jdk1.5.0_11/JRE

3. Add the following startup parameter-xmanagement to the startup script of the Web application server;

4. Start the Web application server so that you can use the jrockit mission control tool to analyze the application memory leakage;

5. Find and start the jrockit mission control tool installed in the Start Menu. The tool will automatically find the application server you just started and monitor the jrockit JDK you just set. For example:

5. Start the memory Leakage Monitor according to the operation

6. Next, you can run the application you need to analyze. You can participate. As the system runs, you will see that the memory in those places is constantly increasing and not collected by the garbage collector; this indicates that there may be Memory leakage in this place. You can check the possible memory leakage points to see which areas are occupying the memory.

For detailed instructions, see Bea jrockit Mission Control help. This article only shows you how to configure it quickly.

This article can be freely transmitted. please be sure to indicate the reference source !!

 

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.