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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...