# Will we need two one agents installed on the same host if the box hosts both the appserver and webserver?

**URL:** <https://community.dynatrace.com/t/will-we-need-two-one-agents-installed-on-the-same-host-if-the-box-hosts-both-the-appserver-and-webserver/15207>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [August 30, 2018, 9:46am UTC](https://community.dynatrace.com/t/will-we-need-two-one-agents-installed-on-the-same-host-if-the-box-hosts-both-the-appserver-and-webserver/15207 "2018-08-30T09:46:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rs00478708](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rs00478708](https://community.dynatrace.com/u/rs00478708)\
**Post date:** [August 30, 2018, 9:46am UTC](https://community.dynatrace.com/t/will-we-need-two-one-agents-installed-on-the-same-host-if-the-box-hosts-both-the-appserver-and-webserver/15207/1 "2018-08-30T09:46:19Z")

</div>

In case we assume that the webserver and the app server are hosted on the same box in pre-prod environment, will we be needing 2 agents on the same host, or is there a way to use the same agent to detect and measure the performance of both the components?

---

<div class="post-metadata">

**Author:** ![muthukumar\_peri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/muthukumar_peri/32/8740_2.png) [@muthukumar\_peri](https://community.dynatrace.com/u/muthukumar_peri)\
**Post date:** [August 30, 2018, 9:57am UTC](https://community.dynatrace.com/t/will-we-need-two-one-agents-installed-on-the-same-host-if-the-box-hosts-both-the-appserver-and-webserver/15207/2 "2018-08-30T09:57:56Z")

</div>

Hi Rangapriya,

Only one OneAgent is enough for a single server. It’ll detect all the running processes in that particular host. I have the same setup in my environments.

You can use Dynatrace custom variable _DT\_PGName_ (Process group detection) within your appserver and webserver processes to keep the name as you like to view in Dynatrace.

Or you can create new rule in Process group naming to show the process name as you like view in Dynatrace.

Hope this helps!

Regards

Muthu

---

<div class="post-metadata">

**Author:** ![rs00478708](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rs00478708](https://community.dynatrace.com/u/rs00478708)\
**Post date:** [August 30, 2018, 10:01am UTC](https://community.dynatrace.com/t/will-we-need-two-one-agents-installed-on-the-same-host-if-the-box-hosts-both-the-appserver-and-webserver/15207/3 "2018-08-30T10:01:22Z")

</div>

Hi Muthu,

Thanks for the prompt response and the clarity in the answer. Appreciate it.

Thanks & Regards,

Rangapriya.
