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.)
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