AppD Archive

New Java Agent Directory for 4.x which "javaagent.jar"?

CommunityUser
Splunk Employee
Splunk Employee

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...

Tags (3)
0 Karma

Arun_Dasetty
Super Champion

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

Tags (3)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

So how is the "dropin mechanism" for new versions planed then? Hmm, not very consequent here...

Tags (3)
0 Karma

Arun_Dasetty
Super Champion

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

Tags (3)
0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...