Hello everyone,
I’ve run into an issue with excessive resource consumption by the Elastic Agent and am looking for advice on optimizing policies and limits.
Context: A customer has a server with very modest hardware specifications — only 4 GB of RAM. We have an Elastic Agent deployed there, and the agent policy includes the Active Directory Entity Analytics integration.
Problem: The customer is reporting that the agent process (and its underlying components) is consuming the most RAM on the server, starving other tasks of resources. I understand that 4 GB is extremely low for a server by today's standards, but upgrading the hardware is not an option right now, so we need to find a software-level workaround. It seems the heavy memory footprint is primarily driven by the data collection and LDAP queries originating from the AD Entity Analytics integration.
Questions:
-
Are there any methods to hard-limit the RAM usage of the Elastic Agent in a Windows environment (e.g., via built-in agent settings or Windows OS mechanisms)?
-
What specific parameters within the Active Directory Entity Analytics integration can be tweaked to reduce the memory footprint? Would significantly increasing the polling intervals or decreasing the batch sizes help?
-
Are there any specific datasets, metrics, or endpoints in this integration that can be safely disabled to lower the overhead?
I would be very grateful for any recommendations, configuration examples, or links to specific documentation. Thanks in advance!