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.
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
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
This worked.