Hi Team,
We are planning to setup AppDynamics for our enterprise monitoring. As part of poc, i was able to install controller in premise and agent in Tomcat 7 server. But when i tried installing agent in WAS 8.5.5.3 it failed with below error message.
class load: java/io/FileNotFoundException from: /opt/ibm/java-x86_64-70/jre/lib/rt.jar
java.io.FileNotFoundException: /opt/IBM/WebSphere/Liberty/bin/tools/javaagent.jar (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:230)
at java.util.zip.ZipFile.<init>(ZipFile.java:160)
at java.util.jar.JarFile.<init>(JarFile.java:167)
at java.util.jar.JarFile.<init>(JarFile.java:131)
.
.
.
Unable to locate directory /opt/IBM/WebSphere/Liberty/bin/tools/lib - java agent cannot execute
class load: com/singularity/ee/agent/appagent/UnableToFindAppagentException from: /opt/AppDynamics/agent/javaagent.jar
com.singularity.ee.agent.appagent.UnableToFindAppagentException: Unable to find appagent
at com.singularity.ee.agent.appagent.AgentEntryPoint.getAgentClassPath(AgentEntryPoint.java:614)
at com.singularity.ee.agent.appagent.AgentEntryPoint.getAgentClassPath(AgentEntryPoint.java:556)
Though i have my appdynamics agent in below location
class load: com/singularity/ee/agent/appagent/AgentEntryPoint from: /opt/AppDynamics/agent/javaagent.jar
agent logs are not generated too.
My process is as below
root 16623 1 0 Jan25 ? 00:05:31 java -XX:MaxPermSize=256m -Djava.util.logging.config.file="logging.properties" -Xmx2048m -Xms2048m -verbose:gc -Xverbosegclog:verbosegc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xverify:none -javaagent:/opt/AppDynamics/agent/javaagent.jar -Dappdynamics.agent.uniqueHostId=DEVHost1 -Dappdynamics.controller.hostName=xxx.xxx.xxx.xxx -Dappdynamics.controller.port=8090 -Dappdynamics.agent.accountName=MobileDevOps -Dappdynamics.agent.accountAccessKey=xxxxxxxxxxxxxxxxx -Dappdynamics.agent.applicationName=dev-jvm1 -Dappdynamics.agent.tierName=DEV -Dappdynamics.agent.nodeName=dev -Dappdynamics.agent.logs.dir=/opt/AppDynamics/agent/logs/dev -verbose:class -javaagent:/opt/IBM/WebSphere/Liberty/bin/tools/ws-javaagent.jar -jar /opt/IBM/WebSphere/Liberty/bin/tools/ws-server.jar simpleServer
any help is appreciated.
Regards
Thilaga
Hi Thilaga,
We have not come acrss the errorr you listed, we would like to check few basic things here, Hope that is fine with you.
Can you remove the other -javaagent entry "-javaagent:/opt/IBM/WebSphere/Liberty/bin/tools/ws
If issue still persists, please send the startup script / xml/screenshot file under which the changes for -javaagent entry are reflected as part of changes to -javaagent entry and also attach the archive of directory /opt/AppDynamics/agent to this post for our review
Regards,
Arun
Why not run run WLP with both the javaagents ?
I tried and it seemed to work.
Hi,
We see cases where AD agent sometimes(random) not work as expected when another agent in place additionally, it is good that it is working for you but it is recommended to not use two javaagent in parallel, Hope that clarifies.
Regards,
Arun