This guide contains the following information:
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 the rules outlined in
the document Agent
Controller configuration
files. The Agent Controller must be restarted for the changes
to take effect.
If you enable security during the configuration step (via SetConfig.sh), currently you need to start the Agent Controller using the root user id. Please refer to the Security Overview section of the Working with the Agent Controller document for more information on this topic.
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, simply type:
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 this document titled "Event
Specification for the Java Profiler".
The Java Profiler can be launched from the Eclipse TPTP
workbench. From the Profiling and Logging Perspective of the Eclipse
workbench you
can launch applications using the Run > Profile menu
contribution or the toolbar button. A wizard will come up and
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 fourth 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:
<rac_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 .:<rac_dir>/plugins/org.eclipse.tptp.platform.collection.framework_<version>/hcframe.jar TestClass
<classpattern> <methodpattern> <mode> , where:
To uninstall the agent controller: