[Python] Memory leak on ECS fargate sidecar container

Discussão em 'Python' iniciado por Stack, Abril 19, 2025.

  1. Stack

    Stack Membro Participativo

    I have a Python application running on AWS ECS Fargate with a simple sidecar container. The sidecar is responsible for:

    • Receiving gRPC requests from the main application(on localhost:port)
    • Querying a local SQLite database to extract configuration data
    • Simple transform and preparation of gRPC response
    • Returning the response back to the main app

    The SQLite database is populated at container startup with records from a DynamoDB table and acts as a fast read cache.

    The setup works as expected, but I've noticed a slow and steady increase in memory usage over time, as seen in CloudWatch Container Insights.

    I’m really struggling to figure out what could be causing this memory growth. Has anyone experienced something similar or have any suggestions on what to investigate?

    Continue reading...

Compartilhe esta Página