Before you start remote profiling, the Profiler agent file that corresponds to the remote host's OS and Java version
must be copied from the Profiler installation\plugins\xxx directory to
the remote host.
Native agent file
For Java 1.5 and above:
agent.dll for Windows - located under \plugins\com.instantiations.jvmti.agent.win32.x86_xxx
agent.so for Linux - located under \plugins\com.instantiations.jvmti.agent.linux.x86_xxx
jvmpi-agent.dll for Windows - located under \plugins\com.instantiations.jvmpi.agent_xxx
libjvmpi-agent.so for Linux - located under \plugins\com.instantiations.jvmpi.agent.linux.x86_xxx
Java agent file
Java 1.5 and above: agent.jar - located under \plugins\com.instantiations.jvmti.agent_xxx Java 1.4: jvmpi-agent.jar - located under \plugins\com.instantiations.jvmpi.agent_xxx
Note:If you use Java 1.4 the VM attempts to locate a profiler agent library (native agent file) in the Java's library directory (C:\Program Files\Java\j2re1.4.2_16\bin\ on Windows or /opt/j2re1.4.2_16/lib/i386/ on Linux).
If the library is not found in the Java library directory, the VM continues
to search for the library following the normal library search mechanism of
the given platform. On Windows,
the VM searches the current directory, Windows system directories,
and the directories in the PATH environment variable. On Linux, the VM searches the directories in
LD_LIBRARY_PATH. Please see http://java.sun.com/j2se/1.4.2/docs/guide/jvmpi/jvmpi.html#start_up for details. So the native agent file (jvmpi-agent.dll or libjvmpi-agent.so) should be located in one of mentioned above directories.
To run a remote application
with the CodePro Profiler, you need to create a Remote Profiling launch
configuration.
II. Set Up Launch Configuration
1. Select
Remote Profiling from the drop-down menu of the Profile toolbar
action to open the launch configuration dialog.
2. Specify launch configuration settings in the dialog.
Remote Profiling Settings:
Java version - Specify the Java version being used on the remote host (>=1.5 or <1.5).
Get port automatically - Check this option if you want Profiler to get the port automatically.
Port - Specify the port where the Profiler will listen to to get information from the agent on the remote host.