# How oneagent works

**URL:** <https://community.dynatrace.com/t/how-oneagent-works/22658>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [December 2, 2019, 11:02pm UTC](https://community.dynatrace.com/t/how-oneagent-works/22658 "2019-12-02T23:02:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashank\_b\_agra](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank\_b\_agra](https://community.dynatrace.com/u/shashank_b_agra)\
**Post date:** [December 2, 2019, 11:02pm UTC](https://community.dynatrace.com/t/how-oneagent-works/22658/1 "2019-12-02T23:02:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dant3](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dant3/32/159_2.png) [@Dant3](https://community.dynatrace.com/u/Dant3)\
**Post date:** [December 3, 2019, 1:10am UTC](https://community.dynatrace.com/t/how-oneagent-works/22658/2 "2019-12-03T01:10:54Z")

</div>

Hey, the magic is in [ld.so(8) - Linux manual page](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:

> **[Install OneAgent on Linux](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/linux/installation/install-oneagent-on-linux)**
>
> Learn how to download and install Dynatrace OneAgent on Linux, including supported architectures, permissions, and configuration steps.
