JProfiler as an IntelliJ IDEA 3.x Plugin

     


  With JProfiler integrated into JetBrain's IntelliJ IDEA, JProfiler can be invoked from within the IDE without any further need for session configuration.

Requirements: JProfiler requires at least IDEA 3.0 For IDEA 4.x, a different plugin with more capabilities is available.

  The installation of the IntelliJ IDEA plugin is started by selecting "IntelliJ IDEA 3.x" on the and clicking on [Integrate]

Reminder: Please close IntelliJ IDEA while performing the plugin installation. If you are performing the installation from JProfiler's setup wizard, please complete the entire setup first before starting IntelliJ IDEA.

A file selector will then prompt you to locate the installation directory of IntelliJ IDEA.

After acknowledging the completion message, you can start IntelliJ IDEA and check whether the installation was successful. You should now see a menu entry Run->Invoke JProfiler in IDEA's main menu.

  To profile your application from IntelliJ IDEA, choose Run->Invoke JProfiler from IDEA's main menu or click on the corresponding toolbar button. In the launch configuration selection dialog, you can decide whether you want to open a new window in JProfiler for the profiling session or if you wish to reuse the last window to accommodate the profiling session.


main toolbar with "JProfiler" button
 


"Run" menu with "JProfiler" action
 

If no instance of JProfiler is currently running, JProfiler is started, otherwise the running instance of JProfiler will be used for starting the application and for presenting profiling data. The information contained in the launch configuration is transmitted to JProfiler. With this information, JProfiler immediately starts a new profiling session. When you close the window, JProfiler asks you if you want to save the session for standalone execution. If you answer with yes, you can enter a name for the session. You will then be able to start it from the start center or from the open session dialog if you open JProfiler as a standalone application.

Only run configurations of type Application can be profiled with the IntelliJ IDEA 3.x integration. For profiling servers, please consider the IntelliJ IDEA 4.x integration where this is possible. Alternatively, you can profile any application and application server with the standalone JProfiler GUI.

When JProfiler is started from IntelliJ IDEA, the "Show source" action for a class or a method in one of JProfiler's view will show the source element in IDEA and not in JProfiler's integrated source code viewer.

All profiling settings and view settings changes are persistent across session restarts.

Note: To configure a native library path, please define the VM parameter -Djava.library.path in IntelliJ IDEA, it will be translated to the native library path by JProfiler.