<?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 Is it possible to instrumenting Java on the fly? in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Is-it-possible-to-instrumenting-Java-on-the-fly/m-p/113264#M8796</link>
    <description>&lt;P&gt;Oracle Java supports 2 ways of instrumenting JVM processes:&lt;/P&gt;&lt;P&gt;- via CLI specifying -javaagent:jarpath,&lt;/P&gt;&lt;P&gt;- starting agents after the JVM startup.&lt;/P&gt;&lt;P&gt;Which method does OneAgent use and why?&lt;/P&gt;&lt;P&gt;Why is it not possible to do Java code injection on the fly without java process restart?&lt;/P&gt;&lt;P&gt;See details:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html"&gt;https://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2020 09:00:50 GMT</pubDate>
    <dc:creator>grechnev</dc:creator>
    <dc:date>2020-06-03T09:00:50Z</dc:date>
    <item>
      <title>Is it possible to instrumenting Java on the fly?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Is-it-possible-to-instrumenting-Java-on-the-fly/m-p/113264#M8796</link>
      <description>&lt;P&gt;Oracle Java supports 2 ways of instrumenting JVM processes:&lt;/P&gt;&lt;P&gt;- via CLI specifying -javaagent:jarpath,&lt;/P&gt;&lt;P&gt;- starting agents after the JVM startup.&lt;/P&gt;&lt;P&gt;Which method does OneAgent use and why?&lt;/P&gt;&lt;P&gt;Why is it not possible to do Java code injection on the fly without java process restart?&lt;/P&gt;&lt;P&gt;See details:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html"&gt;https://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 09:00:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Is-it-possible-to-instrumenting-Java-on-the-fly/m-p/113264#M8796</guid>
      <dc:creator>grechnev</dc:creator>
      <dc:date>2020-06-03T09:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to instrumenting Java on the fly?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Is-it-possible-to-instrumenting-Java-on-the-fly/m-p/113265#M8797</link>
      <description>&lt;P&gt;AFAIK OneAgent uses JVMTI to instrument the JVM itself. But there is also a native part of oneagent (library written in C++) linked to your JVM process. I don't think you can add any library with such functionality on the fly to any process.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 13:09:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Is-it-possible-to-instrumenting-Java-on-the-fly/m-p/113265#M8797</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2020-06-03T13:09:45Z</dc:date>
    </item>
  </channel>
</rss>

