JProfiler as an IntelliJ IDEA 4.x/5.x plugin

## JProfiler as an IntelliJ IDEA 4.x/5.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: The IDEA 4.x/5.x plugin requires at least IDEA 4.0 For IDEA 3.x, a different plugin is available.

| The installation of the IntelliJ IDEA plugin is started by selecting "IntelliJ IDEA 4.x/5.x" 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 screenshot 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.