Using the DevTest agent at the command line

Document ID : KB000007694
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

The DevTest agent is not loaded with the application when starting from the command line.

Environment:
All supported DevTest platforms.
Cause:

Java requires the parameters on the command line to be in a certain order.

Resolution:

The DevTest agent parameter must be the first parameter listed on the command line.

Example:

java -javaagent:<pathToAgent>InsightAgent.jar=name=<agentName>=url=tcp://<BrokerHost>:2009 MyProgram
or
java -javaagent:<pathToAgent>InsightAgent.jar=name=<agentName>=url=tcp://<BrokerHost>:2009 -jar MyProgram.jar
where:
<pathToAgent> = Fully qualified path to the DevTest agent jar files
<agentName> = Unique name for this agent. It will be displayed in the Portal.
<BrokerHost> = IP or Host Name where the broker is running.

Additional Information:

Not applicable.