Using the DevTest agent at the command line

book

Article ID: 7694

calendar_today

Updated On:

Products

CA Continuous Application Insight (PathFinder)

Issue/Introduction

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

Cause

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

Environment

All supported DevTest platforms.

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.