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!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...