The DevTest agent is not loaded with the application when starting from the command line.
Java requires the parameters on the command line to be in a certain order.
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.
Not applicable.