If the session type in the
application settings
is set to "Attach to profiled JVM (local or remote)", the following settings are displayed in the middle part of the dialog:
-
Host
Enter the host on which the application you want to profile is running either
as a DNS name or as an IP address. If this is your local computer, you may enter
localhost.
-
Port
Choose the port on which the profiling agent is listening. If you have
not supplied a port parameter,
the default port 8849 is the correct choice. This default can be restored by
clicking the [Default] button on the right side of the text field.
-
Timeout
Choose the timeout in seconds after which JProfiler will give up trying to connect to the
profiled application.
-
Start command
If you enable the "start command" checkbox and enter the path to an executable in the
text field to the right, JProfiler will execute this command before trying to connect
to the profiled application. The output of that command will be displayed in a terminal
window similar to the "local" session type.
In this case JProfiler has full control over the life cycle of the profiled application. If
the terminal window is closed, the stop button is clicked or JProfiler is exited, the process
will be killed if it is still alive.
The application server integration wizard uses start commands to make it easy to profile
application servers. should you want to take control of the launching of the application
server you can temporarily uncheck the "start command" checkbox while preserving
the suitable start command.
-
Stop command
If you enable the "stop command" checkbox and enter the path to an executable in the
text field to the right, JProfiler will execute this command when disconnecting from the
profiled application, i.e. when the terminal window is closed, the stop button is clicked
or JProfiler is exited.
The application server integration wizard uses stop commands where possible.
-
Open browser with URL
If you would like to open a browser window along with the session, please select this checkbox
and enter the URL in the adjacent text field. JProfiler polls this URL until it becomes available,
only then is the browser opened. Please set the
browser start command if you're
working on a UNIX platform.