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 !!