Eclipse Test & Performance Tools (TPTP) project provides an open platform that allows a developer to profile and analyze execution of Java applications. Here, we present the steps needed to enable Java profiling using TPTP and Apogee JREs.
Introduction.The profiling solution based on TPTP consists of several components, including:
Installation of TPTP.
Installation of Agent Controller.Eclipse project provides ports of AgentController and piAgent for some of the environments. Target-specific ports of the above can be created in-house or provided by Apogee. Once the Agent Controller has been placed on the target system, it needs to be configured by editing $TPTP_AC_HOME/config/serviceconfig.xml file to reflect proper locations of both Agent Controller and the VM binaries (on the target system). acsetenv.sh script should also reflect above changes and must be run prior to invocation of Agent Controller. To test proper configuration of Agent Controller:
% acsetenv.sh
% acsetenv.sh
% ACStop.sh
Running JRE with piAgent.In order to run JRE with piAgent, following steps should be followed:
Profiling Java Applications.With the JRE running and waiting for connection from the host side, Eclipse/TPTP can be configured to obtain and display profiling information:
Additional Resources.To get more information about profiling using TPTP and interpreting profiled data, check out:
Known Issues.TPTP randomly stops collecting data from the piAgent/Agent Controller. This behavior can be mitigated by restricting the number of packages, classes, methods to be profiled via filter usage. |