This guide contains the following information:
<ifs restore directory> = The absolute directory path where the IFS portion of Agent Controller has been restored.
You can verify the version of the installed Agent Controller by running the QShell script version.sh under the /opt/hyadesdc/bin directory. This requires step 7 to be executed before entering QShell.
If you want to make changes to the configuration file that was generated in step 5, 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.
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:
Step 7 in Configuring and starting Agent Controller
is required for invoking the Java Profiler from the command line. Also,
multithread capability must be enabled to profile a java application
from the command line. Under QShell, the environment variable QIBM_MULTI_THREADED
must be set to Y by the command: export
QIBM_MULTI_THREADED=Y. 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:
<ifs restore directory>/plugins/org.eclipse.tptp.platform.collection.framework_<version>/config/pluginconfig.xml
The 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:
ENDJOB JOB(RASTART) OPTION(*IMMED)
rm -r /opt/hyadesdc/*