This topic describes common profiling tasks. For more
detailed information, click the links in the right column.
To perform this task |
Follow these steps |
Calibrate the profiler. |
You need to calibrate the profiler the first time you use
your local JDK or a remote JDK for profiling.
|
Start profiling a local application. |
- Do one of the following:
- Select the project node in the Projects window and choose Profile > Profile Project in the main menu.
- To profile a project that is set as the main project, choose Profile > Profile Main Project.
- To profile an individual project, right-click the project in the Projects window
and choose Profile Project.
- Select a profiling task.
- Click Run.
|
Modify a running profiling session. |
- While a profiling session is in progress, choose Profile > Modify Profiling Session from the main menu.
Alternatively, click Modify Profiling Session in the Profiler window.
- Select a Profiling Task.
- Click OK.
|
Profile a remote application. |
- Choose Profile > Attach Profiler from the main menu.
- Click define in the Attach Settings dialog box.
- Generate and install the Profiler Remote Pack on the remote JVM if not already installed.
- Configure the startup options for the application for the remote attach method if not already configured.
- Start the remote application on the target JVM.
- Click Attach in the Attach Profiler dialog box.
|
Attach to a local application. |
- Choose Profile > Attach Profiler from the main menu.
- Select the Project and a profiling task.
- Click define in the Attach Profiler dialog box.
- Select the Local as the target and select a connection method in the Attach Settings dialog box.
- Configure the startup options for the application, if necessary.
- Start the application on the target JVM.
- Click Attach in the Attach Profiler dialog box.
|
Stop a profiling session. |
- Choose Profile > Stop Profiling Session from the main menu.
|
Take a snapshot of profiling results. |
- While a profiling session is in progress,
choose Profile > Take Snapshot of Collected Results from the main menu.
|
Take a heap dump. |
- While a profiling session is in progress,
choose Profile > Take Heap Dump from the main menu.
|