<?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: Issue while attaching javaagent.jar to existing jvm on windows-8 64 bit in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Issue-while-attaching-javaagent-jar-to-existing-jvm-on-windows-8/m-p/726605#M5368</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;1) java -Xbootclasspath/a:"PATH TO JDKlib\tools.jar" -jar "PATH TO APPAGENTver4.3.1.0\javaagent.jar" 6616&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;I believe you have stripped the paths here but using correct path in your command.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;2) In that could you check if the process 6616 exists while you attach it or is it a short lived JVM?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;3) 6616 could be runnig with a different java than the java that is in the path. As you are not using fully qualified java path in the command these two javas could be different. Could you please check? Also check if the user attaching the javaagent and the user running the java process are same.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;4) Also please let us know the java version both for the java in path and the java that process 6616 uses.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;5) You can configuration java agent by passing the javaagent argument to your application start up script. This is another way of instrumenting the application.&lt;/SPAN&gt;&lt;/P&gt;

&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="code"&gt;
&lt;DIV class="container" title="Hint: double-click to select code"&gt;
&lt;DIV class="line number1 index0 alt2"&gt;&lt;CODE class="java plain"&gt;-javaagent:&amp;lt;agent_home&amp;gt;\javaagent.jar&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;

&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent&lt;/A&gt;&lt;/P&gt;


&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Saradhi&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2017 05:43:18 GMT</pubDate>
    <dc:creator>Saradhi_Pothara</dc:creator>
    <dc:date>2017-05-19T05:43:18Z</dc:date>
    <item>
      <title>Issue while attaching javaagent.jar to existing jvm on windows-8 64 bit</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Issue-while-attaching-javaagent-jar-to-existing-jvm-on-windows-8/m-p/726604#M5367</link>
      <description>&lt;P&gt;So I started with community document on how to setup appdynamics 4.3 on premises.&lt;/P&gt;

&lt;P&gt;At a point it talks about javaagent.jar its uses and installation, than we need to attach it to existing jvm process for which I used&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;but when I am doing is following steps and this is what I got on cmd&lt;/P&gt;

&lt;P&gt;C:\&amp;gt;java -Xbootclasspath/a:"PATH TO JDKlib\tools.jar" -jar "PATH TO APPAGENTver4.3.1.0\javaagent.jar" 6616&lt;BR /&gt;Attaching to VM [6616]&lt;BR /&gt;java.lang.reflect.InvocationTargetException&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:497)&lt;BR /&gt; at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:753)&lt;BR /&gt;Caused by: java.io.IOException: no such process&lt;BR /&gt; at sun.tools.attach.WindowsVirtualMachine.openProcess(Native Method)&lt;BR /&gt; at sun.tools.attach.WindowsVirtualMachine.&amp;lt;init&amp;gt;(WindowsVirtualMachine.java:56)&lt;BR /&gt; at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAttachProvider.java:69)&lt;BR /&gt; at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208)&lt;BR /&gt; ... 5 more&lt;BR /&gt;Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException&lt;BR /&gt; at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:767)&lt;BR /&gt;Caused by: java.lang.reflect.InvocationTargetException&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:497)&lt;BR /&gt; at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:753)&lt;BR /&gt;Caused by: java.io.IOException: no such process&lt;BR /&gt; at sun.tools.attach.WindowsVirtualMachine.openProcess(Native Method)&lt;BR /&gt; at sun.tools.attach.WindowsVirtualMachine.&amp;lt;init&amp;gt;(WindowsVirtualMachine.java:56)&lt;BR /&gt; at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAttachProvider.java:69)&lt;BR /&gt; at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208)&lt;BR /&gt; ... 5 more&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 04:45:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Issue-while-attaching-javaagent-jar-to-existing-jvm-on-windows-8/m-p/726604#M5367</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-05-18T04:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while attaching javaagent.jar to existing jvm on windows-8 64 bit</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Issue-while-attaching-javaagent-jar-to-existing-jvm-on-windows-8/m-p/726605#M5368</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;1) java -Xbootclasspath/a:"PATH TO JDKlib\tools.jar" -jar "PATH TO APPAGENTver4.3.1.0\javaagent.jar" 6616&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;I believe you have stripped the paths here but using correct path in your command.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;2) In that could you check if the process 6616 exists while you attach it or is it a short lived JVM?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;3) 6616 could be runnig with a different java than the java that is in the path. As you are not using fully qualified java path in the command these two javas could be different. Could you please check? Also check if the user attaching the javaagent and the user running the java process are same.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;4) Also please let us know the java version both for the java in path and the java that process 6616 uses.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;5) You can configuration java agent by passing the javaagent argument to your application start up script. This is another way of instrumenting the application.&lt;/SPAN&gt;&lt;/P&gt;

&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="code"&gt;
&lt;DIV class="container" title="Hint: double-click to select code"&gt;
&lt;DIV class="line number1 index0 alt2"&gt;&lt;CODE class="java plain"&gt;-javaagent:&amp;lt;agent_home&amp;gt;\javaagent.jar&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;

&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent&lt;/A&gt;&lt;/P&gt;


&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Saradhi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 05:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Issue-while-attaching-javaagent-jar-to-existing-jvm-on-windows-8/m-p/726605#M5368</guid>
      <dc:creator>Saradhi_Pothara</dc:creator>
      <dc:date>2017-05-19T05:43:18Z</dc:date>
    </item>
  </channel>
</rss>

