This guide contains the following information:
<ac_dir> = The absolute directory path where Agent Controller has been unzipped. For example, /opt/RAC.
If you want to make changes to the configuration file that was generated in step 2, you may run the SetConfig.sh script again or you may manually edit the file according to the rules outlined in the document Agent Controller configuration files. The Agent Controller must be restarted for the changes to take effect.
Note that the fourth step in Configuring and
Starting Agent Controller is required to query the version of the
agent controller.
To display the version of Agent Controller, change your working directory to <ac_dir>/bin in a command shell and run the following command:
RAServer -v
or
RAServer -version
The Agent Controller will display its version and terminate.
The Java Profiler consists of a Profiling Agent packaged as a
library. This profiling agent is started by the JVM when the JVM
is
started with the -Xrun
option described below. The profiling agent interacts with the
JVM to capture and
record the Java application's behavior. The output from the profiling
agent is
in the form of XML fragments. The format of this fragment is
described in the document entitled "Event
Specification for the Java Profiler".
You can profile a Java application by using the Eclipse workbench
or
manually by invoking the profiler from the command line.
The Java Profiler can be launched from the Eclipse workbench. From the Profiling and Logging Perspective of the Eclipse workbench you can launch applications using the Run > Profile menu or the toolbar button. A wizard will come up. SImply follow the wizard to profile an application. Applications in the current Eclipse workbench's workspace, or external Java applications located in the file system, can be launched and profiled.
Note that the first step in Configuring and starting Agent Controller is required for invoking the Java Profiler from the command line. The Java Profiler is invoked from a command line using the -Xrun JVM option as follows:
-XrunpiAgent[:agent_parm[,agent_parm]*where agent_parm may be:
<ac_dir>/plugins/org.eclipse.tptp.platform.collection.framework_<version>/config/pluginconfig.xmlThe following modification is required:
<Agent client="DYNAMIC" configuration="default" dataChannelSize="64M" name="Java Profiling Agent" type="Profiler"/>should be modified to
<Agent client="HEADLESS" configuration="default" dataChannelSize="64M" name="Java Profiling Agent" type="Profiler" logFile="<some_dir>/profile.trcxml"/>Note that the Agent client attribute has been changed to "HEADLESS" and that the "logFile" attribute has been added.
java -XrunpiAgent:server=applicationControlled -classpath .:<ac_dir>/plugins/org.eclipse.tptp.platform.collection.framework_<version>/hcframe.jar TestClass
<classpattern> <methodpattern> <mode>
where:
To uninstall the agent controller: