02 Dec 2019 11:02 PM - last edited on 27 Apr 2021 12:23 PM by MaciejNeumann
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?
LD_PRELOAD_64=$DT_HOME/agent/lib64/liboneagentproc.so
export LD_PRELOAD_64
Solved! Go to Solution.
03 Dec 2019 01:10 AM
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: