# DB2 Extension ActiveGate consuming high CPU and Memory

**URL:** <https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377>\
**Category:** Extensions\
**Tags:** activegate, extensions, profiling-and-optimization\
**Created:** [February 10, 2023, 7:39am UTC](https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377 "2023-02-10T07:39:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [February 10, 2023, 7:39am UTC](https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377/1 "2023-02-10T07:39:46Z")

</div>

Hello Folks,

Just wanted to know how DB2 extension fetches a data.

Recently, we faced high CPU and Memory utilization on ActiveGate which is running DB2 extension.

I observed multiple instances (approx. 80-90) of “com.dynatrace.jdbc.connector.main” process which is I guess responsible for fetching DB2 metrics. After killing those instances, CPU and Memory back to normal.

Does DB2 extension creates process instance for each endpoint assigned to ActiveGate or it should be only one instance?

Regards,

AK

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [February 10, 2023, 11:37am UTC](https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377/2 "2023-02-10T11:37:18Z")

</div>

The extension creates one JVM for each endpoint. I’d recommend sticking to 30 or so endpoints on one ActiveGate.

The new DB2 extension which is scheduled for later this month or the beginning of March resolves this by using just a single JVM.

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [February 10, 2023, 12:48pm UTC](https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377/3 "2023-02-10T12:48:54Z")

</div>

I am waiting for this new extension version!!!

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [February 10, 2023, 1:28pm UTC](https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377/4 "2023-02-10T13:28:29Z")

</div>

[@Mike\_L](https://community.dynatrace.com/user/11520), thanks for the useful information. I will be waiting for this new extension to come.

But for this new extension will it possible to assign at least 60-70 endpoints? What would be the cap? any idea.

Regards,

AK

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [February 10, 2023, 1:29pm UTC](https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377/5 "2023-02-10T13:29:47Z")

</div>

We had an internal demo of it a couple of weeks ago, it’s looking really good!

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [February 10, 2023, 1:33pm UTC](https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377/6 "2023-02-10T13:33:43Z")

</div>

60-70 endpoints on AG will be fine with the new extension. Anything up to 100 is fine, in the future it’ll be even more.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [February 10, 2023, 1:57pm UTC](https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377/7 "2023-02-10T13:57:46Z")

</div>

[@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;one more thing to highlight, does it create a issue if we have OneAgent also on extension AG, because we have OA on that it to do self monitoring and as per the support we should not&nbsp;monitor such extension AG hosts with OneAgent.

It would be great if you share some thought on this.

Regards,

AK

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [February 10, 2023, 2:01pm UTC](https://community.dynatrace.com/t/db2-extension-activegate-consuming-high-cpu-and-memory/38377/8 "2023-02-10T14:01:53Z")

</div>

A lot of customers use OA’s on AG’s without any problem at all. We also recommend it sometimes to investigate support issues.
