Splunk AppDynamics

Java Agent doesn't start in Docker container

Nauman_Aftab
New Member

Hi, 

I have created a docker image using:

  • OpenJDK 
  • glassfish 5.1
  • etc.

and installed the java appagent t inside the container where glassfish is running. 

and configured the glassfish:

  • to use the JVM parameter -javaagent:/opt/appdynamics/appagent/javaagent.jar.
  • modified osgi.properties for glassfish to use com.singularity.*
  • the agent /opt/appdynamics/appagent/javaagent.jar is unzipped inside the container where glassfish is running

The controller doesn't receive any events not does there are any log files generated where the agent is located. We are using appdynamics on-premise successfully with the above configuration without any dockerization. 

Without logs, it is pretty difficult to trouble shoot the issue. Any advise would be apprecited.

Labels (1)
0 Karma

Peter_Holditch
Builder

Do you have any output at all from the glassfish startup?

When you say "the agent /opt/appdynamics/appagent/javaagent.jar is unzipped inside the container where glassfish is running" do you mean that the only file in the container is javaagent.jar?  If so, that is the root cause of your issue.  You need the entire agent directory structure as contained in the agent zip for the agent to function.

0 Karma

Nauman_Aftab
New Member

It is the complete directory structure. The agent is unzipped in a particular folder i.e./opt/appdynamics/appagent/javaagent.jar. The glassfish logs are showing nothing related to the failure/success. We are successfully running the same configuration in our prod env for sometime, it just fails with docker setup.

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...