## JProfiler as an IntelliJ IDEA 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: IDEA 6.x, 7.x., 8.x, 9.x or 10.x

| The installation of the IntelliJ IDEA plugin is started by selecting "IntelliJ IDEA [your version]" on the IDE integration tab of JProfiler's setup wizard miscellaneous options tab of JProfiler's general settings (use Session->IDE integrations in JProfiler's main menu as a shortcut). 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->Profile in IDEA's main menu.

| To profile your application from IntelliJ IDEA, choose one of the profiling commands in the Run menu, the context menu in the editor, or click on the corresponding toolbar button. Main toolbar with "Profile" button "Run" menu with "Profile" action Editor context menu with "Profile" action JProfiler can profile all run configuration types from IDEA, also applications servers. To configure further settings, please edit the run configuration, choose the "Startup/Connection" tab, and select the "Profile" entry. The screen shot below shows the startup settings for a local server configuration. Depending on the run configuration type, you can adjust JVM options or retrieve profiling parameters for remote profiling. Startup settings for profiling of a local server configuration For all run configuration types 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. The profiled application is then started just as with the usual "Run" commands. If no instance of JProfiler is currently running, JProfiler is also started, otherwise the running instance of JProfiler will be used for presenting profiling data. 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. You can also open JProfiler snapshots from IDEA, either from the project window or the open file dialog in order to get source code navigation into IDEA. With the Run->Attach JProfiler to JVM menu item, you can attach JProfiler to any locally started JVM and get source code navigation in the IDE. Please see the help on attaching to JVMs for more information on attach mode.

| In order to change the used JProfiler installation from IntelliJ IDEA, please do the following: Select "Edit Configurations" from the "Run" drop down menu Select "Application" under "Defaults" in the dialog box (or any existing run configuration) Select the "Startup/Connection" tab Select "JProfiler" in the list Click on the "Select JProfiler Executable" button Choose the JProfiler executable, which is [JProfiler installation directory]\bin\jprofiler.exe on Windows [JProfiler installation directory]/bin/jprofiler on Linux/Unix [JProfiler installation directory]/bin/macos/jprofiler.sh on Mac OS X