I am trying to understand how oneagent gets installed and how it works? We only supply the below 2 parameters in startup.sh script and restart the tomcat and out of the blue everything starts working but what i want to understand is how it does it internally like how this magic happens?
What does this library (liboneagentproc.so) do as we supply it into LD_PRELOAD_64 environment variable. We are not even mentioning it into JVM parameters then how it is injecting itself?
Answer by Dante P. ·
Hey, the magic is in http://man7.org/linux/man-pages/man8/ld.so.8.html (ld.so.preoload) and a few other things that our friends at dynatrace baked in the oneagent. Prop to the reason that (AFIK) there is not another agent that do this OOTB in the market.
This might be of help:
Meaning of "--registration-token" ? 1 Answer