In the documentation at https://docs.appdynamics.com/display/PRO40/Java+Agent+Directory+Structure
Under <agent_home>/<version>/ there is another version specific "javaagent.jar"
In the documentation it says:
"
javaagent.jar
: A version-specific JAR file that serves as the Java agent binary. Do not use this Java agent JAR when configuring instrumenting directly. Use javaagent.jar
in the root directory instead."
What do you mean by "configuring instrumenting directly"? When is this javaagent the right one and when the one in the root folder?
The wording is a little be unclear here.
Thanks for solving the ambiguity...
Hi ,
The doc statement can be ignored and it could be for debug purpose, We request you to poin -javaagent entry in jvm startup scripts to root directory as below:
-javaagent:<agent_home>/javaagent.jar
Instead -javaagent:<agent_home>/ver4.0.0.0/javaagent.jar , Hope that clarifies.
Regards,
Arun
Hi,
We see this is how it is planned to implement, user need to update version he is planned to use in <agent_dir>/conf/agent-version.ini file and this is used to determine which version of the agent should run, based on the current app, tier, and node name. The file consists of a series of sections, separated by "[config]" element. And the ver<number> folder javaaagent.jar is picked based on parameters passed at runtime like app/tier/node name , and this helps to have separate config files under version folder.
Hope that clarifies your query.
Regards,
Arun