Java profiling toolJProfilerIt can be integrated with a variety of IDES and application servers. This article mainly introduces jprofiler andIntelliJ IDEA Integration.
1. Choose Session> IDE integrations from the main menu of JProfiler. It is worth noting that IntelliJ IDEA needs to be disabled when the plug-in is installed. If you run the installation program through the JProfiler Installation wizard, you must complete the installation before starting IntelliJ IDEA.
2. To analyze the application through IntelliJ IDEA, you need to select one of the profile commands in the Run menu, the context menu in the editor, or click the corresponding toolbar button.
Main toolbar with "Profile" button
"Run" menu with "Profile" action
Editor context menu with "Profile" action
3. JProfiler can analyze all running configuration types from all IDEA or application servers. Edit the running configuration, select the "Startup/Connection" tab, and then select "Profile" for further configuration. The following shows the startup settings for the local server configuration. Depending on the running configuration type, you can adjust JVM options or retrieve analysis parameters for remote analysis.
Startup settings for profiling of a local server configuration
4. For all running configuration types, you can decide whether to open a new analysis session window in JProfiler, or you want to reuse the last window to adapt to the analysis session.
5. Click the "Run" command to analyze the application. If no JProfiler instance is running at the time, JProfiler will still be started; otherwise, the JProfiler instance running will be used to present the analysis data.