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!

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Transforming Financial Data into Fraud Intelligence

Every day, banks and financial companies handle millions of transactions, logins, and customer interactions ...

How to send events & findings from AWS to Splunk using Amazon EventBridge

Amazon EventBridge is a serverless service that uses events to connect application components together, making ...