cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How oneagent works

shashank_b_agra
Organizer

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

 

1 REPLY 1

ADPaoloni
Mentor

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:


https://www.dynatrace.com/support/help/technology-support/operating-systems/linux/installation/insta...