Skip to content

[Bug] Elastic Agent with "Agent monitoring" enabled uses excessive memory on Kubernetes deployments #6594

@BenB196

Description

@BenB196
  • Version: 8.17.1
  • Operating System: Kubernetes/AWS EKS (1.31)
  • Steps to Reproduce:
    1. Deploy a Fleet Managed Elastic Agent DaemonSet to Kubernetes (with "Agent monitoring" enabled)
    2. Observe memory utilization
    3. Disable "Agent monitoring"
    4. Observe memory utilization
    5. Observe that the memory utilization decreases by ~200-250MB (~25% of total agent pod/container memory utilization)

Image

The drop in memory on the above graph is when "Agent monitoring" was disabled. The right-hand legend, is the total (sum) of all memory utilization for Elastic Agents in an environment. The total goes from ~39.5GB (with "Agent Monitoring" enabled), to ~30GB (with "Agent monitoring" disabled).

Image

If observed on a per pod basis, the average memory utilization goes from ~980MB to ~740MB.

I believe that this is a bug, as it doesn't make sense as to why simply enabling monitoring of the Elastic Agent itself increases the memory utilization by ~200-250MB/~25% of total memory used by the agent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions