<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to install java agent on Ubuntu machine in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-install-java-agent-on-Ubuntu-machine/m-p/721122#M2416</link>
    <description>&lt;P&gt;Hi Kiran&lt;/P&gt;&lt;P&gt;Lets go through the steps&lt;/P&gt;&lt;P&gt;Firstly ensure that the user that you are starting the tomcat process as, has permissions to read/write to the AppDynamics Agent directory:) Otherwise allow access.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;1. Connectivity&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Have you confirmed that you can access the Trial AppDynamics instance from the sevrer where you are running your tomcat instance?&lt;/P&gt;&lt;P&gt;You can use telnet command to verify that you can connect to the SaaS hostname&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;telnet myappdtrial.saas.appdynamics.com 443&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;2. Agent Configuration&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Have you set the following values according to your controller&lt;/P&gt;&lt;P&gt;controller-host&lt;/P&gt;&lt;P&gt;controller-port&lt;/P&gt;&lt;P&gt;controller-ssl-enabled&lt;/P&gt;&lt;P&gt;application-name&lt;/P&gt;&lt;P&gt;tier-name&lt;/P&gt;&lt;P&gt;node-name&lt;/P&gt;&lt;P&gt;account-name&lt;/P&gt;&lt;P&gt;access-key&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;3. Tomcat Configuration&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;in the Tomcat bin directory e.g&lt;/P&gt;&lt;P&gt;/apache-tomcat-7.0.105/bin&lt;/P&gt;&lt;P&gt;Open and edit the&amp;nbsp;catalina.sh file&lt;/P&gt;&lt;P&gt;Add this line into the top of the file, with the &amp;lt;agent_home&amp;gt; variable to be changed to where you unzipped your Appdynamics Java agent&lt;/P&gt;&lt;P&gt;export CATALINA_OPTS="$CATALINA_OPTS -javaagent:&amp;lt;agent_home&amp;gt;/javaagent.jar"&lt;/P&gt;&lt;P&gt;Then just stop and start the Tomcat service and AppDynamics should be instrumented&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;4. Validation&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;run a command e.g&lt;/P&gt;&lt;P&gt;ps aux | grep tomcat&lt;/P&gt;&lt;P&gt;Check if you can see the AppDynamics startup arguments are part of the Tomcat process&lt;/P&gt;&lt;P&gt;Check the AppDynamics logs directory, if it started with the Tomcat process, it should have created a folder with the "node name" you gave in the logs directory&lt;/P&gt;&lt;P&gt;Then validate that you can see the application in AppDynamics&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 19:32:21 GMT</pubDate>
    <dc:creator>Morelz</dc:creator>
    <dc:date>2020-07-29T19:32:21Z</dc:date>
    <item>
      <title>How to install java agent on Ubuntu machine</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-install-java-agent-on-Ubuntu-machine/m-p/721121#M2415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am new to AppDynamics and I am using 15 days trial version SAAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to install a java agent on the Ubuntu machine. I have downloaded the java configuration file from the wizard.&lt;/P&gt;

&lt;P&gt;I configured the controller-info.xml file accordingly. But, to load the java agent in JVM, could you please guide where I need to add the below one? (location)&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;-javaagent:&amp;lt;agent_home&amp;gt;/javaagent.jar&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Also, I am using tomcat7, could you please guild where should I add these arguments.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;export CATALINA_OPTS="$CATALINA_OPTS -javaagent:&amp;lt;agent_home&amp;gt;/javaagent.jar"&lt;/P&gt;

&lt;P&gt;Once these two are configured, automatically the agents gets connected to the controller?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Kiran&lt;/P&gt;

&lt;P&gt;^ Posted edited by&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/142051"&gt;@Ryan.Paredez&lt;/A&gt;&amp;nbsp;to improve the title of the post.&amp;nbsp;&lt;/P&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Jul 2020 16:02:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-install-java-agent-on-Ubuntu-machine/m-p/721121#M2415</guid>
      <dc:creator>Kiran_K</dc:creator>
      <dc:date>2020-07-29T16:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to install java agent on Ubuntu machine</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-install-java-agent-on-Ubuntu-machine/m-p/721122#M2416</link>
      <description>&lt;P&gt;Hi Kiran&lt;/P&gt;&lt;P&gt;Lets go through the steps&lt;/P&gt;&lt;P&gt;Firstly ensure that the user that you are starting the tomcat process as, has permissions to read/write to the AppDynamics Agent directory:) Otherwise allow access.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;1. Connectivity&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Have you confirmed that you can access the Trial AppDynamics instance from the sevrer where you are running your tomcat instance?&lt;/P&gt;&lt;P&gt;You can use telnet command to verify that you can connect to the SaaS hostname&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;telnet myappdtrial.saas.appdynamics.com 443&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;2. Agent Configuration&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Have you set the following values according to your controller&lt;/P&gt;&lt;P&gt;controller-host&lt;/P&gt;&lt;P&gt;controller-port&lt;/P&gt;&lt;P&gt;controller-ssl-enabled&lt;/P&gt;&lt;P&gt;application-name&lt;/P&gt;&lt;P&gt;tier-name&lt;/P&gt;&lt;P&gt;node-name&lt;/P&gt;&lt;P&gt;account-name&lt;/P&gt;&lt;P&gt;access-key&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;3. Tomcat Configuration&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;in the Tomcat bin directory e.g&lt;/P&gt;&lt;P&gt;/apache-tomcat-7.0.105/bin&lt;/P&gt;&lt;P&gt;Open and edit the&amp;nbsp;catalina.sh file&lt;/P&gt;&lt;P&gt;Add this line into the top of the file, with the &amp;lt;agent_home&amp;gt; variable to be changed to where you unzipped your Appdynamics Java agent&lt;/P&gt;&lt;P&gt;export CATALINA_OPTS="$CATALINA_OPTS -javaagent:&amp;lt;agent_home&amp;gt;/javaagent.jar"&lt;/P&gt;&lt;P&gt;Then just stop and start the Tomcat service and AppDynamics should be instrumented&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;4. Validation&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;run a command e.g&lt;/P&gt;&lt;P&gt;ps aux | grep tomcat&lt;/P&gt;&lt;P&gt;Check if you can see the AppDynamics startup arguments are part of the Tomcat process&lt;/P&gt;&lt;P&gt;Check the AppDynamics logs directory, if it started with the Tomcat process, it should have created a folder with the "node name" you gave in the logs directory&lt;/P&gt;&lt;P&gt;Then validate that you can see the application in AppDynamics&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 19:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-install-java-agent-on-Ubuntu-machine/m-p/721122#M2416</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2020-07-29T19:32:21Z</dc:date>
    </item>
  </channel>
</rss>

