Hi,
We have installed AppDynamics and we are using Oracle JVM and added tools.jar under tomcat lib, and java JRE lib also but when we try to check on object tracking we are still seeing
tools.jar is not in the JVM classpath
any help to resolve this is appreciated.
Hi @Easwar.C,
Can you confirm if the latest reply helped answer your post or not? If not, reply back and keep the conversation going.
Still same error also our application has multiple jars.
Hello @Easwar.C
Could you please confirm whether the tools.jar is in the correct path which should be your JAVA_HOME in the OS?
I tested with JDK8 and tomcat and I could see object instance tracking in my controller normally.
I attached the screenshots of my configuration and result as references.
On a side note, you can open a case with AppD support, please kindly look through the article to raise a case if necessary.
How do I open a case with AppDynamics Support?
First, make sure that you have access to Cisco SCM by having a valid Cisco.com account. If you were part of the migration this should have been done automatically for you. If still you need to request a Cisco.com account, please refer to the earlier communication about User Identity changes found here.
Make your way to the AppDynamics portal on appdynamics.com/support. When you log in to the AppDynamics portal you will be automatically redirected to Cisco SCM.
Hope this helps.
Best regards,
Xiangning
Hi @MARTINA.MELIANA,
Can you check out the latest reply from @Easwar.C?
Hi @Easwar.C,
Have you been able to review the comment your post got? If it helped, please click the 'Accept as Solution" button on the reply that helped. If no, reply back to the thread and keep the conversation going.
Sorry for the delay I'm still having issues I have posted my update.
Hello @Easwar.C, Cc: @Ryan.Paredez @MARTINA.MELIANA
Thanks for your reply.
As per our documentation, could you please try using -Xbootclasspath/a:/usr/lib/jvm/jdk-1.8-oracle-x64/jre/lib/ext/tools.jar instead to see how it goes?
When using the JDK runtime environment, set the classpath using the
-classpath
option for the application. For example:
- On Windows:
java -classpath <complete-path-to-tools.jar>;%CLASSPATH% -jar myApp.jar
- On Unix:
java -Xbootclasspath/a:<complete-path-to-tools.jar> -jar myApp.jar
Regards,
Xiangning
Hi @Easwar.C,
Thank you for posting to the community.
Is your jar file being placed under the path : JRE_HOME>/lib/ext
as indicated in perquisite for Object instance Tracking?
Also, When using the JDK runtime environment, we need to set the classpath using the -classpath
option for the application.
After these setting. restart the JVM.
Moreover, it is worth to check whether the user that currently running the JVM has access to read the jar file. Cause this error could be triggered when permission denied.
Hope this helps,
Martina
I have updated tomcat.service with tools.jar but it is still not working.
Environment='JAVA_OPTS=-Djava.awt.headless=true -javaagent:/opt/appdynamics/javaagent.jar -Dappdynamics.agent.applicationName=biznuvo_test1_node2 -Dappdynamics.agent.tierName=biznuvo_test1_node2 -Dappdynamics.agent.nodeName=biznuvo_test1_node2-i-0e42a26c009127da0 -Dappdynamics.agent.uniqueHostId=biznuvo_TEST1_node2_ip-172_31_31_131 -Xbootclasspath:/usr/lib/jvm/jdk-1.8-oracle-x64/jre/lib/ext/tools.jar'