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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...