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 just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...