AppD Archive

Java application can not start up with AppDynamics lite javaagent setting

CommunityUser
Splunk Employee
Splunk Employee

I use this command:

java -javaagent:/opt/appdynamics/javaagent.jar $cp myApplicaiton

In output console, it shows that "Started AppDynamics Java Agent Successfully". It just stops there, and my application doesn't run at all.

Is there the compatibility problem betweeen  my java application and the java agent? (Of course, my applicaiton runs very well without the javaagent.) 

Arun_Dasetty
Super Champion

Hi,

Thanks for writing to appsphere community forum. We confirm there should not be any compatibility problem to run any standalone or -jar file with -javaagent having AD agent. Can you please try as follows:

shell>  java -cp .:<path/to/jar/to/be/added/to/classpath> -javaagent:"/mnt/test1/agent/javaagent.jar"


Ex:

shell>  java -cp .:/mnt/test1/dbutil.jar -javaagent:"/mnt/test1/agent/javaagent.jar" -jar MyApp.jar
shell>  java -cp .:/mnt/test1/dbutil.jar -javaagent:"/mnt/test1/agent/javaagent.jar" com.test1.TestUser

refer docs: http://litedocs.appdynamics.com/display/ADLite/Installing+the+Application+Server+Agent

If you still see the issue, can you pleease provide the following details:

- provide the command you have tried and the error stack trace you got initially ?

- provide jdk, application stack details?

we see mostly such issues in due to wrong syntax in java command using -javaagent entry or agent directory does not have executable permissions , while starting AD agent

Thanks,

Arun

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...