Skip to content

Compaction memory usage is too high with no limit #4636

@bobrik

Description

@bobrik

We are trying a single instance pyroscope with a bunch of machines reporting to it, backed by Cloudflare R2. We have observed quite high memory usage after a while.

Zoomed into a single recent profile I see 120GiB+ of memory used, pretty much exclusively in compactor:

Image

That tracks with cadvisor metrics for the service:

Image

There doesn't seem to be a way to set the limit. There should be both a limit and a reasonable default here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions