[JProfiler] Idea integrates JProfiler to analyze memory leaks

Preface

When running a java project, you want to test the memory usage during runtime. At this time, you need to use a testing tool to check. There is Eclipse Memory Analyzer tool (MAT) plug-in for testing in eclipse. There is also such a plug-in in idea, which is JProfiler.

idea plugin installation

Open idea, enter the setting interface

Restart after installation. Check the situation after the installation is successful ( an additional icon is added ).

( Click on the icon, in the pop-up dialog box, nothing can be selected, that is, the ok button is always in a non-clickable state ) What is the situation, this is that the plug-in needs to rely on an executable file ( this exe, which is idea) The file to be associated ) is the source of JAVA PROFILER, go to the official website to download  https://www.ej-technologies.com/products/jprofiler/overview.html

JProfiler local installation

Enter the official website to download ( select the version, because the latest version does not necessarily have a registration code on the Internet )

 The downloaded installation file is as follows

Double click to install

Next step

Next step

Here he will let you enter the registration code, without the registration code, there is only a 10-day trial time. The registration code is available online, just get one ( this is really not easy ! The version I use is 11.1.4, and the following steps are not as complicated as the original text, because some things are automatically associated ). Pay attention to this. I am using the latest 10.1.4 version. There is currently no latest activation code on the Internet, so we need to get a registration code on the official website.

 Go to the official website to get a free one, but only 7 days. The purpose is only for testing, professional please pay at your own expense. Portal ( optional )>  https://www.ej-technologies.com/download/jprofiler/trial

 Fill in the information, and then fill in the mailbox, this mailbox will send you a registration code. Then go to the mailbox to copy the registration code and fill it in. ( May not be )

 Here is the tool for you to choose integration. Here is the version of idea2018.x. So I chose this way. Then click integrate and a prompt box will appear. At this time, you need to close the idea.

 At this time, the integrated tool will be selected. He will automatically find the version you choose, and then choose. ( May not be )

 If the following prompt appears, it means that your integration is successful. If you do not close the idea, red garbled characters will appear.

Set the software update, select Never

The installation is complete! ! !

Idea configures the executable file of JProfiler

As mentioned above, the execution file is missing when using idea. At this time, let's go to the idea to integrate it ( not necessary ).

  • Find the plug-in interface.

  • Enter the interface for selecting files. Then find the path you just installed, look at the picture and follow the selection.

 All the way is ok. If the above steps do not click the analysis button after installing the plug-in, there is no need to select, and the tool will be automatically associated, and the final interface will be the same as the pop-up

test

Use JProfiler to start project testing in idea

 The JProfiler tool will be opened automatically ( this step may not be available )

 Here will verify the registration code prompt ( not in the previous step, not in this step, and vice versa! )

 Session information (before this step, there may be a step to select the type of information monitoring, one detailed, one rough)

The following situation shows that the startup was successful. In this way, the idea is integrated, and the method used can be seen on the official website.

Reference article

https://blog.csdn.net/qq_22194659/article/details/83829891

https://blog.csdn.net/qq_22194659/article/details/83829891

https://blog.csdn.net/wytocsdn/article/details/79258247

Guess you like

Origin blog.csdn.net/xiaoxiao_su123/article/details/113117300