Skip to content

High CPU usage in Docker (locally) #7520

@kristian-nst

Description

@kristian-nst

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

Describe the bug

While my "platform" is idling (no requests to any service, etc), the Flagsmith container is almost constantly on 10% cpu, and I think it's the main contributor to Docker in itself goes to a high CPU usage in total, and eventually turns on my fans (I'm speculating)

Any ideas regarding this behavior? Is there a background job running every X seconds, or something? Or what else could it be? 😅

PS: I'm using a Macbook M4 MAX. Fans shouldn't turn on just for running this imo, on this kind of hardware :) When I stop Flagsmith, I feel like the total Docker CPU and fan-turning-on issues don't occur as often..

Steps To Reproduce

Just let it run in idle mode.

All other services are <1% cpu in idle, sometimes (few times a minute at most) jumping to 2-5% at most. But Flagsmith is constantly (every few seconds!) jumping to 10%

Expected behavior

Low cpu usage, not constant spikes.

Screenshots

Image Image Image

Other services idling look like this:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions