Previous Topic: Java Agent ArchitectureNext Topic: Java Agent Components


Java Agent Technology

The DevTest Java Agent is a type of Java agent.

Java agents are programs that are embedded in a Java virtual machine (JVM). These programs can be designed to support many functions, such as collecting information about a running application or virtualizing parts of an application.

In the following graphic, the large container represents the JVM. The JVM includes an agent and the class loader, which loads Java class files at run time. The clouds represent resources that the Java application loads.

Concept diagram of a Java agent

An agent is packaged in a JAR file. The JVM must be configured with the path to the JAR file. As of Java 1.5, you use a string that starts with -javaagent to specify the path and any options. For example:

-javaagent:C:\myagent.jar=option1=true,option2=false 

A single JVM can include multiple agents.