# Can two agents co-exist on the same host ?

**URL:** <https://community.dynatrace.com/t/can-two-agents-co-exist-on-the-same-host/47434>\
**Category:** Dynatrace Managed\
**Tags:** installation, dynatrace-managed, oneagent\
**Created:** [September 2, 2024, 2:59pm UTC](https://community.dynatrace.com/t/can-two-agents-co-exist-on-the-same-host/47434 "2024-09-02T14:59:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SirineMaslah1](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SirineMaslah1](https://community.dynatrace.com/u/SirineMaslah1)\
**Post date:** [September 2, 2024, 2:59pm UTC](https://community.dynatrace.com/t/can-two-agents-co-exist-on-the-same-host/47434/1 "2024-09-02T14:59:16Z")

</div>

Hello

As part of a project to migrate an APM tool to Dynatrace, I want to know if we can install the Oneagent on a Host where there is already an agent that collects data (an agnet from a vendor similar to Dynatrace)  
the target will be to install Dynatrace’s oneagent in parallel on the host in double RUN time to finish the tests.

Can the two agents co-exist?

thx

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 2, 2024, 5:26pm UTC](https://community.dynatrace.com/t/can-two-agents-co-exist-on-the-same-host/47434/2 "2024-09-02T17:26:25Z")

</div>

[@SirineMaslah1](https://community.dynatrace.com/user/80146),

It depends on the Agent. I have seen several cases where Dynatrace replaces the existing agent, mainly when dealing with APM. But there are also other cases where it does not.

When talking about agents in Infra mode, I wouldn’t say there would be a problem.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 19, 2024, 8:09am UTC](https://community.dynatrace.com/t/can-two-agents-co-exist-on-the-same-host/47434/3 "2024-09-19T08:09:10Z")

</div>

For the different APM agents that are installed in full-stack mode, there will be an impact on the injection and stability of the monitored services.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 19, 2024, 8:37am UTC](https://community.dynatrace.com/t/can-two-agents-co-exist-on-the-same-host/47434/4 "2024-09-19T08:37:21Z")

</div>

Hi&nbsp;[@SirineMaslah1](https://community.dynatrace.com/user/80146)

- as long as you can decide which processes to be monitored or not by which agent. this the key factor and the main purpose of the monitoring.
- It’s not recommended to have 2 different apm agents running on the same server to measure the performance of the running app.

**you can make it in a different way if both agents are serving the same purpose:**

- to obtain the required insights from app using agent “x” install it on staging for example and compare it with the obtained insights from agent “y” on another app server. and observe the expected outcomes.

**If the agents aren’t serving the same purpose:**

- you can test the stability and outcomes in uat environment in advance while both agents are running.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 19, 2024, 8:37am UTC](https://community.dynatrace.com/t/can-two-agents-co-exist-on-the-same-host/47434/5 "2024-09-19T08:37:50Z")

</div>

Thanks&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;for highlighting such point.

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [September 19, 2024, 10:46am UTC](https://community.dynatrace.com/t/can-two-agents-co-exist-on-the-same-host/47434/6 "2024-09-19T10:46:48Z")

</div>

I won’t recommend it. You can have side effects.
