The DevTest Java Agent is a piece of technology that can be installed inside a Java application, including Java EE containers. The agent enables DevTest to control and monitor server-side activities.
The agent can do what most profilers do: monitor loaded classes/objects, CPU usage, memory usage, threads, track method calls, and so on. However, the agent works across multiple Java virtual machines and is used with DevTest to bring unique features to testing.
In particular, the agent provides visibility into the behind the scenes actions of an application. This capability can help identify bugs and bottlenecks. The agent also supports CA Service Virtualization. The agent enables record and replay of traffic and method calls across multiple protocols.
More specifically, the DevTest agent's startup parameters are added to the Java application's command line parameters.
The agent's code instrument the application at both the JVM and class level. Allowing the agent to capture JVM statistics and class level messaging.
Requirement to install the DevTest Java Agent:
Java Agent Startup Parameters: Some application start using a script and some have a User Interface for setup parameters. Please consult the DevTest documentation for specific installation instructions. However, they all have the same basic format.
-javaagent:<path to agent jars>=name=<agent_name>,url=<broker_url>
-javaagent: At startup, tells the Java JVM this is a special kind of jar and will act as a Java Agent.
<path to agent jars>: Fully qualified path to the agent jar files. Example: "C:\DevTest_Agents\InsightAgent.jar"
<agent_name>: A unique name for this agent. Usually the name includes information about the machine or application where the agent is running.
<broker_url>: Connection information to the DevTest Broker. Examples: tcp://192.168.1.1:2009 or ssl://localhost:2009 The port is the port the broker is listening on and must be open for two way communication.
Environment Not Supported:
It is highly recommend opening a support ticket the first time an agent is installed.
Support can walk you through the process and handle issues if they arise.