Monitoring build running from within IntelliJ IDEA
Enable Ant monitoring
- Start IntelliJ IDEA
- Open your project
- In the "Ant Build" tool windows select your Ant project and right-click on it to open the "Build File Properties" dialog
- Select the "Execution" tab
- Add the following to the "Ant command line" field:
_ONE_AGENT_
_A_
_TWO_AGENTS_
- If Ant runs on a 64-bit JVM:
-J_A_64_
- If Ant runs on a 32-bit JVM:
-J_A_32_
_END_AGENTS_
Enable Gradle monitoring
- Start IntelliJ IDEA
- Open your project
- Use "Run | Edit Configurations" in the main menu to open the "Run/Debug Configurations" dialog
-
If you already use a Gradle configuration to build your project:
- select your Gradle configuration.
You may optionally make its copy to leave the original configuration intact.
-
...otherwise create a new one:
- Press "Add New Configuration" button and choose "Gradle"
- Give created configuration a name, e.g. "YourKit Gradle Build"
- Choose your project in "Gradle project" field
- In "Tasks" field write "build" or task name you use for project building
-
In the "Configuration" tab add the following to the "VM options" field:
_ONE_AGENT_
_A_
_TWO_AGENTS_
- If Gradle runs on a 64-bit JVM:
_A_64_
- If Gradle runs on a 32-bit JVM:
_A_32_
_END_AGENTS_
Enable Maven monitoring
- Start IntelliJ IDEA
- Open your project
- Use "Run | Edit Configurations" in the main menu to open the "Run/Debug Configurations" dialog
-
If you already use a Maven configuration to build your project:
- select your Maven configuration.
You may optionally make its copy to leave the original configuration intact.
-
...otherwise create a new one:
- Press "Add New Configuration" button and choose "Maven"
- Give created configuration a name, e.g. "YourKit Maven Build"
- Select "Parameters" tab
- In "Working Directory" field point to Maven project
- In "Command Line" field write "package" goal or other goals and arguments your use for project building
-
In the "Runner" tab add the following to the "VM options" field:
_ONE_AGENT_
_A_
_TWO_AGENTS_
- If Maven runs on a 64-bit JVM:
_A_64_
- If Maven runs on a 32-bit JVM:
_A_32_
_END_AGENTS_