Oracle Java supports 2 ways of instrumenting JVM processes:
- via CLI specifying -javaagent:jarpath,
- starting agents after the JVM startup.
Which method does OneAgent use and why?
Why is it not possible to do Java code injection on the fly without java process restart?
See details: