cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

AntonioSousa
DynaMight Guru
DynaMight Guru

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 https://docs.dynatrace.com/docs/ingest-from/extensions20/extensions-concepts#resource-consumption

If you absolutely need to, like I did with the VMware extension, the per configuration limits can be raised with the following entry in extensionsuser.conf

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...

Antonio Sousa
5 REPLIES 5

Mike_L
Dynatrace Guru
Dynatrace Guru

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.

Mike

Thank you for directing me to this post @AntonioSousa 

Hi @Mike_L 

 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: Method=process_all_logs: Callback Method=process_all_logs took 1691.0987 seconds to execute, which is longer than the interval of 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" ? 

 

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

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.

Mike

jeffrey_cather
Organizer

There are other configuration options that can be changed to allow more threads or change the timing interval for the VMware Extension.  Also there is an option list the dslimit_python_mem for cpu.

 

 

Better be good for goodness sake.....

Kenny_Gillette
DynaMight Leader
DynaMight Leader

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

Dynatrace Certified Professional

Featured Posts