AppD Archive

Liberty Profile 8.5.5.2 with App Dynamics on IBM jre 1.7_64

CommunityUser
Splunk Employee
Splunk Employee

So I downloaded and extracted AppServerAgent-ibm-3.9.2.1.zip to my server.  It is in a directory with full access by my server.  I didn't modify anything under this directory.  I'm using all jvm options.

Then under my /opt/IBM/Websphere/Liberty/usr/servers/<app>/ directory I created a file bootstrap.properties

> cat bootstrap.properties

org.osgi.framework.bootdelegation=com.singularity.*

Then I created jvm.options in same directory.  I hid my company values with the < > tags.

> cat jvm.options

-javaagent:/<path to >/app_dynamics/javaagent.jar=uniqueID=test
-Dappdynamics.agent.nodeName=<server:port>
-Dappdynamics.agent.tierName=<tier name>
-Dappdynamics.agent.applicationName=<appname>

I see this error when starting Liberty up now.  It is in my console.log

java.lang.RuntimeException: Invalid Agent Installation Directory [/opt/IBM/WebSphere/Liberty/bin/tools]
at com.singularity.ee.agent.appagent.AgentEntryPoint.addThirdPartyURLs(AgentEntryPoint.java:279)
at com.singularity.ee.agent.appagent.AgentEntryPoint.premain(AgentEntryPoint.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:618)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:404)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:419)

 I'm not sure what I am missing.

0 Karma
1 Solution

Arun_Dasetty
Super Champion

Hi,

Somehow the agent install directory is not resolved, Can you do the following changes and see how it goes after JVM restart:

1) Update and add agent directory details to absolute path as stated below:

Before update:

-javaagent:/<path to >/app_dynamics/javaagent.jar=uniqueID=test

After update:

-Dappagent.install.dir=/opt/appdynamics/agent

-javaagent:/opt/appdynamics/agent/javaagent.jar

do the above changes after creating agent directory as stated above with executable permissions and make sure no spaces in agent directory path provided in jvm.options file

2) Also make sure the following properties have valid values at runtime:

-Dappdynamics.agent.nodeName=<server:port>
-Dappdynamics.agent.tierName=<tier name>
-Dappdynamics.agent.applicationName=<appname>

Ex:

-Dappdynamics.agent.applicationName=myapp1

-Dappdynamics.agent.nodeName=myjvmnode1

-Dappdynamics.agent.nodeName=mytier1

Let us know if that information helps.

Regards,

Arun

View solution in original post

Arun_Dasetty
Super Champion

Hi,

Somehow the agent install directory is not resolved, Can you do the following changes and see how it goes after JVM restart:

1) Update and add agent directory details to absolute path as stated below:

Before update:

-javaagent:/<path to >/app_dynamics/javaagent.jar=uniqueID=test

After update:

-Dappagent.install.dir=/opt/appdynamics/agent

-javaagent:/opt/appdynamics/agent/javaagent.jar

do the above changes after creating agent directory as stated above with executable permissions and make sure no spaces in agent directory path provided in jvm.options file

2) Also make sure the following properties have valid values at runtime:

-Dappdynamics.agent.nodeName=<server:port>
-Dappdynamics.agent.tierName=<tier name>
-Dappdynamics.agent.applicationName=<appname>

Ex:

-Dappdynamics.agent.applicationName=myapp1

-Dappdynamics.agent.nodeName=myjvmnode1

-Dappdynamics.agent.nodeName=mytier1

Let us know if that information helps.

Regards,

Arun

CommunityUser
Splunk Employee
Splunk Employee

This worked.

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...