AppD Archive

Java agent fails to start with websphere liberty server

CommunityUser
Splunk Employee
Splunk Employee

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

 

 

0 Karma

Arun_Dasetty
Super Champion

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-javaagent.jar" as part of JVM startup settings and see how it goes with jvm restart, and also confirm whether the AD agent directory have executable permissions and also confirm the md5/checksum of the file downloaded is not corrupted? you can check the md5/checksum of the file at our download site itself , url http://download.appdynamics.com/

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

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Why not run  run WLP with both the javaagents ?

I tried and it seemed to work.

0 Karma

Arun_Dasetty
Super Champion

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

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...