# PRO TIP: Solve "High memory usage detected" in AG extensions

**URL:** <https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666>\
**Category:** Dynatrace Tips\
**Tags:** extensions\
**Created:** [January 11, 2025, 9:30pm UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666 "2025-01-11T21:30:13Z")\
**Posts on this page:** 15\
**Page:** 1

<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:** [January 11, 2025, 9:30pm UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/1 "2025-01-11T21:30:13Z")

</div>

For some reason, you might see in AG/extension logs the “High memory usage detected…” entry.

These are raised when an EF2 extension uses more memory than it is supposed to consume. The limits are documented in [About Extensions — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/extensions20/extensions-concepts#resource-consumption)

If you absolutely need to, [like I did with the VMware extension](https://community.dynatrace.com/post/265403), the per configuration limits can be raised with the following entry in extensionsuser.conf

```auto
dslimit_python_mem=2000

```

In this case, each monitoring configuration might use 2000 MB

Please beware that you have to make sure that you have sufficient memory in the AG to run it smoothly…

---

<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:** [January 13, 2025, 1:10pm UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/2 "2025-01-13T13:10:54Z")

</div>

Depending on the extension you might want to switch out the middle part of the flag to, for example, wmi or SNMP.

The easiest way to figure out which data source it is, is either by looking at the extension.yaml file or the steps when creating the monitoring configuration.

---

<div class="post-metadata">

**Author:** ![jeffrey\_cather](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jeffrey_cather/32/8464_2.png) [@jeffrey\_cather](https://community.dynatrace.com/u/jeffrey_cather)\
**Post date:** [January 15, 2025, 1:45pm UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/3 "2025-01-15T13:45:22Z")

</div>

There are other configuration options that can be changed to allow more threads or change the timing interval for the VMware Extension.&nbsp; Also there is an option list the dslimit\_python\_mem for cpu.

---

<div class="post-metadata">

**Author:** ![darshil](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@darshil](https://community.dynatrace.com/u/darshil)\
**Post date:** [April 9, 2025, 10:25am UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/4 "2025-04-09T10:25:32Z")

</div>

Thank you for directing me to this post&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)

Hi&nbsp;[@Mike\_L](https://community.dynatrace.com/user/11520)

We are encountering the same error with our Salesforce extension configurations. I added the entry as suggested, but I am still seeing the error mentioned below.

Error:&nbsp; **Method=process\_all\_logs: Callback Method=process\_all\_logs took&nbsp;1691.0987&nbsp;seconds to execute, which is longer than the interval of&nbsp;600.0s**

Our extensionsuser.conf looks like below currently:-

_#statsd configuration_  
_statsdenabled=false_  
_StatsdPort=18126_

_#syslog configuration_  
_syslogenabled=false_

_dslimit\_python\_mem=2000_

_Is the above error/issue totally different from “ **High memory usage detected for python datasource running configuration 58163fca-142f-39dc-8854-fd6d96571f71. Restarting** ” ?&nbsp;_

_Could you please let me know what flag needs to be changed in regards to the Salesforce extension. I could not locate extension.yaml file_

---

<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:** [April 9, 2025, 10:45am UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/5 "2025-04-09T10:45:33Z")

</div>

The two are probably not related. Your issue is that the call we do to Salesforce takes almost 30 minutes to return. Please go with a support case so we can look into if we could maybe split the call into smaller chunks, or something else.

---

<div class="post-metadata">

**Author:** ![Kenny\_Gillette](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny_gillette/32/20170_2.png) [@Kenny\_Gillette](https://community.dynatrace.com/u/Kenny_Gillette)\
**Post date:** [April 9, 2025, 1:04pm UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/6 "2025-04-09T13:04:56Z")

</div>

Don’t forget about new dashboard for monitoring AGs - ActiveGate diagnostic overview

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [December 7, 2025, 7:33am UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/7 "2025-12-07T07:33:04Z")

</div>

Hello&nbsp;[@jeffrey\_cather](https://community.dynatrace.com/user/37506)

Where can I find the option to modify the interval in the VMware extension?

Regards,

Babar Qayyum

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [December 7, 2025, 7:39am UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/8 "2025-12-07T07:39:34Z")

</div>

Hello&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;&&nbsp;[@mike](https://community.dynatrace.com/user/7269)

We are utilizing the performance profile alongside a group of 4 ActiveGates; however, we continue to encounter the following issue (VMware Remote Monitoring). Also, there is no resources issue on any one of the host.

**High memory usage detected for python datasource running configuration 723ecea2-82f0-35e5-bd20-a242cd5b0829. Restarting**

 ![Babar_Qayyum_0-1765092921458.png](https://global.discourse-cdn.com/dynatrace/original/1X/41f371dbc4300faa8acd11853d94b1981294b394.png)

Regards,

Babar Qayyum

---

<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:** [December 7, 2025, 8:29pm UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/9 "2025-12-07T20:29:53Z")

</div>

The VMware extension consumes a lot of memory. How many ESXs/VMs?

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [December 9, 2025, 7:14am UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/10 "2025-12-09T07:14:29Z")

</div>

Hello&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)

We currently operate **133 ESXi hosts** and nearly **3500 Virtual Machines**. It is important to note that we do not face any resource limitations regarding polling servers.

Regards,

Babar Qayyum

---

<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:** [December 9, 2025, 11:11am UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/11 "2025-12-09T11:11:38Z")

</div>

[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;,

I an environment like that, I would say you need at least an ActiveGate with 24/32 GB. Check it out with:

- func:sfm\_extension\_memory\_consumption:filter(and(or(eq(“host.name”,xxxxxx))):splitBy(“dt.extension.name”,“dt.entity.extensions:configuration”):sort(value(auto,descending)):limit(100)

Beware that the amount of data coming in with the default extension will be very big. Of course it depends on items like storage, just be careful&nbsp;&nbsp;🤣

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [December 9, 2025, 11:37am UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/12 "2025-12-09T11:37:19Z")

</div>

Hello&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)

We have a group of **four nodes** , configured with a **performance profile** that includes dedicated limits of **16GB of memory** for each node. Below is the average memory utilization.

 ![Babar_Qayyum_0-1765279966460.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/5/4504f4463094f19f0ed5f112c38e6755e9a38dfb.png)

Regards,

Babar Qayyum

---

<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:** [December 9, 2025, 11:50am UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/13 "2025-12-09T11:50:21Z")

</div>

[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;,

For one vCenter, the extension will only run in an AG at any given time. Try to split by AG and Monitoring Configuration in the above graph, and check if it changes substantially?  
Please note that the extension running will not be distributed for a certain monitoring configuration, which is what you should have for that environment. Reducing the feature sets will reduce memory consumption. If you need to go beyond that, you will have to change the extension.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [December 10, 2025, 4:20am UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/14 "2025-12-10T04:20:21Z")

</div>

Hello&nbsp;[@AntonioSousa](https://community.dynatrace.com/user/17213)

The result presented below originates from the host, where the extension is functioning, and the second screenshot illustrates the overall health of the host.

 ![Babar_Qayyum_0-1765340041348.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/4/44b7feef7e8020cd2bcfb02d1bfd58be66748350.png)

 ![Babar_Qayyum_1-1765340402604.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/abd797876f40bca8aca5e81ca4bd51efb279c657.png)

Regards,

Babar Qayyum

---

<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:** [December 10, 2025, 11:00pm UTC](https://community.dynatrace.com/t/pro-tip-solve-high-memory-usage-detected-in-ag-extensions/49666/15 "2025-12-10T23:00:48Z")

</div>

[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;,

Memory usage is not what I expected for a 16GB host, and extension pattern usage. You’re probably better off putting in a support ticket, so someone from Dynatrace can explain these “High memory usage detected …”
