Skip to content

High memory usage for large configuration using glob as matcher type #475

Description

@pedro-stanaka

Summary

Recently, when running the exporter with a large configuration (i.e. around 3k entries), we saw a big heap allocation to store the state inside the FSM for glob matching. This issue is just a sanity check to see if we should have be seeing this amount of memory usage.

For comparison, in the previous version of the configuration (with a couple hundred entries) we were seeing 30MiB~ usage per instance on idle, with the new huge configuration we are seeing around 150MiB usage.

For now, as a workaround we are using regex matching, which (due to LRU matcher in the mapper) has not changed CPU usage a lot.

This is the heap for glob matcher:
profile012

And this one is for the regex matcher:
profile013

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions