Profiling a Java application by attaching to a Java process
To profile a running application locally that was started manually in the profiling mode, use Integrated Agent Controller instead of the Agent
Controller.
- Click Run > Profile.... The Profiling wizard opens.
- In the left pane (Configurations), select Attach - Java Process.
- Click New. A new configuration is created with the default name New_configuration. Optionally change that name to something more
descriptive.
- On the Host tab, in the Default Hosts section, select localhost:<port>.
- Click on the Agents tab and select the agent to attach to as well as the type of profiling data that you want to collect.
- Click Profile. The application will be launched by Integrated Agent Controller in profiling mode, starting the profiling agent. The
workbench will be attached to the profiling agent automatically and the profiling activity can begin.
Note
If the local Agent Controller is running, that local Agent Controller will be used instead of Integrated Agent Controller.
Related tasks
Working with the Agent Controller
Profiling with Integrated Agent Controller