<?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: failed to attach agent to server in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730680#M7230</link>
    <description>&lt;P&gt;Any recommendations ??&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 08:58:26 GMT</pubDate>
    <dc:creator>Amr_Gamal</dc:creator>
    <dc:date>2017-11-14T08:58:26Z</dc:date>
    <item>
      <title>failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730671#M7221</link>
      <description>&lt;P&gt;hello ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using macOS sierra , firstly i installed&amp;nbsp;&amp;nbsp;java(jdk 9.0.1) after that i installed the apache tomcat server and it worked successfully after that i followed the instructions in the video of installing java agent ; as i downloaded the agent and followed the steps but i can't attach the server to the agent due to the error (in the below screenshot):&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-11-13 at 2.46.21 PM.png" style="width: 896px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35745i3F1C57E7DA980AD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;i noticed that tools.jar not exist in the JDK lib folder , but i don't know why and is it the problem or what ?&lt;/P&gt;
&lt;P&gt;how can i fix this issue , please ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 11:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730671#M7221</guid>
      <dc:creator>Amr_Gamal</dc:creator>
      <dc:date>2017-11-13T11:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730672#M7222</link>
      <description>&lt;P&gt;java 9 removed tools.jar from the distribution, and also removed the -Xbootclasspath option (see &lt;A href="http://openjdk.java.net/jeps/261" target="_self" rel="nofollow noopener noreferrer"&gt;the modules spec&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;You should find that the agent will attach to your running tomcat if you simply remove this option from the command line.&lt;/P&gt;

&lt;P&gt;Warm regards,&lt;BR /&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:00:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730672#M7222</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2017-11-13T12:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730673#M7223</link>
      <description>&lt;P&gt;thanks peter for your support ,but i tried it but it failed also so could you tell me what needs to be modified in the command so that it can attached successfully ,the original command :&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;sudo java -Xbootclasspath/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/lib/classes.jar -jar /Users/amrgamal/Downloads/AppServerAgent-4/ver4.3.3.9/javaagent.jar&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;Best Regards&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Amr&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730673#M7223</guid>
      <dc:creator>Amr_Gamal</dc:creator>
      <dc:date>2017-11-13T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730674#M7224</link>
      <description>&lt;P&gt;I just noticed from the path in your command that you are using version 4.3.3.9 of the agent.&lt;/P&gt;

&lt;P&gt;JDK9 support was a new feature we introduced in the 4.4 release, so you will need to&amp;nbsp;upgrade to a 4.4 agent and controller, or downgrade to jdk 8 to get this working.&lt;/P&gt;

&lt;P&gt;Warm regards,&lt;BR /&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:12:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730674#M7224</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2017-11-13T12:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730675#M7225</link>
      <description>&lt;P&gt;i downgraded to jdk but the issue still the same as below screen shot .&lt;/P&gt;
&lt;P&gt;is there something else i should do or check for ??&lt;/P&gt;

&lt;P&gt;thanks a lot&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-11-13 at 3.32.54 PM.png" style="width: 888px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35748i93CBF886942483C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730675#M7225</guid>
      <dc:creator>Amr_Gamal</dc:creator>
      <dc:date>2017-11-13T12:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730676#M7226</link>
      <description>&lt;P&gt;Are you sure the java command hasn't picked up the java 9 JDK?&lt;/P&gt;
&lt;P&gt;What happens if you replace "java" with "/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java" ?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730676#M7226</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2017-11-13T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730677#M7227</link>
      <description>&lt;P&gt;yeah i'm sure i removed jdk9&lt;/P&gt;
&lt;P&gt;the same error happened&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-11-13 at 3.49.11 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35750iB3DD2BA857309A47/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 12:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730677#M7227</guid>
      <dc:creator>Amr_Gamal</dc:creator>
      <dc:date>2017-11-13T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730678#M7228</link>
      <description>&lt;P&gt;Ah, I just noticed that your bootclasspath option is slightly malformed&lt;/P&gt;
&lt;P&gt;From the &lt;A href="https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent#InstalltheJavaAgent-AttachingtheJavaAgenttoaRunningJVMProcess" target="_self" rel="nofollow noopener noreferrer"&gt;documentation&lt;/A&gt;, you want to run the command like this:&lt;/P&gt;
&lt;PRE&gt;java -Xbootclasspath/a:&amp;lt;path_to_jdk&amp;gt;/lib/tools.jar -jar /&amp;lt;agent_home&amp;gt;/javaagent.jar &amp;lt;jvm_process_id&amp;gt;&lt;/PRE&gt;
&lt;P&gt;you're missing the "/a:" part, and the process ID of your running tomcat.&amp;nbsp; Can you try adding these?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 13:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730678#M7228</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2017-11-13T13:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730679#M7229</link>
      <description>&lt;P&gt;nice , i modified the command and get the process id but it raised an exception ,&lt;/P&gt;
&lt;P&gt;i think the problem is in the process id , it check for it but it changed over time&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-11-13 at 4.29.34 PM.png" style="width: 758px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35747i69EF86706801F152/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-11-13 at 4.29.26 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35755iDC089D4BA9B1F581/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 13:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730679#M7229</guid>
      <dc:creator>Amr_Gamal</dc:creator>
      <dc:date>2017-11-13T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730680#M7230</link>
      <description>&lt;P&gt;Any recommendations ??&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 08:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730680#M7230</guid>
      <dc:creator>Amr_Gamal</dc:creator>
      <dc:date>2017-11-14T08:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730681#M7231</link>
      <description>&lt;P&gt;So, from the above 2282 was the pid of jps itself, which explains why you can't attach to that, since it stopped running before you tried.&lt;/P&gt;

&lt;P&gt;The second process, called "bootstrap" is presumably your tomcat, so try to attach to that.&amp;nbsp; (you could see the full command line&amp;nbsp;by adding the -v option to your jps command)&lt;/P&gt;

&lt;P&gt;If you're having toruble connecting to the tomact dynamically, you could try to add the javaagent as a tomcat startup parameter, as documented &lt;A href="https://docs.appdynamics.com/display/PRO44/Apache+Tomcat+Startup+Settings" target="_self" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 10:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730681#M7231</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2017-11-14T10:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: failed to attach agent to server</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730682#M7232</link>
      <description>&lt;P&gt;i executed the full command line with -v parameter and it returned 2 ids then&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i tried to execute the command of attaching the agent but it also failed with the same error with both 2 ids&lt;/P&gt;

&lt;P&gt;i tried to add the javaagent as a tomcat startup parameter but no changes happened&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm really got frustrated , any suggestions in order to try appdynamics&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or is there another way to practice on appdynamics&lt;/P&gt;

&lt;P&gt;thank&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-11-14 at 3.03.49 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35756i1420D620E2A2B2DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 12:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/failed-to-attach-agent-to-server/m-p/730682#M7232</guid>
      <dc:creator>Amr_Gamal</dc:creator>
      <dc:date>2017-11-14T12:13:52Z</dc:date>
    </item>
  </channel>
</rss>

