DocumentationJava Profiler 8.0 HelpConnect to profiled application
previous      content      next
Connect to profiled application

Once you have profiled application running, you should connect to it to obtain and analyze profiling results.

If you launch the profiled application from your IDE, the profiler UI will automatically start and connect to the application (unless you had turned this option off in the IDE).

To connect, use Welcome screen:

Connect to locally running profiled application

"Locally running profiled application" means that the profiled application is running on the same computer where you are now using the profiler UI.

The profiler can automatically detect all locally running profiled applications.

If more than one is found, you will be asked to select one. If only one application is found, the profiler will connect to it without prompting you.

Connect to remote application

Use this to connect to a profiled application that is running on a remote computer.

You can simply specify the host (name or IP address) of the remote computer where the profiled application(s) is (are) running. In this case the profiler tries to automatically detect the profiled applications on ports in some predefined range. When the profiled application starts, the profiler agent first tries to use a port in this range, thus enabling an automatic scan of the applications on remote host.

If you explicitly specified a port to be used by the profiler agent when launching the profiled application, you have to explicitly enter the port together with the host (using the syntax host:port). Automatic detection will not work in this case. Also, you should specify the pair host:port if there are so many profiled applications running simultaneously that for some of them there was no free port available in the predefined range.

In connected mode

After a connection is established successfully, the profiling session tab opens. It contains the toolbar to control profiling and displays application telemetry.

1. Capture Performance Snapshot - save the profiling results to a file, which can be opened later
2. CPU Profiling controls
3. Control thread telemetry
4. Memory Profiling controls
5. Force Garbage Collection
6. Monitor Profiling controls
7. Clear exception telemetry
8. "Pause" - stop/start receiving data from profiled application.
"Refresh" - immediately receive profiling data from the profiled application and update the views
9. Scale graphs

You can close the profiling session tab by selecting File | Close Profiling Session.

You can connect to and disconnect from the profiled application as many times as you wish during its run time.

previous      content      next