Skip to content

🐛 Memory leak in Nginx module #5

@mahaben

Description

@mahaben

Hi,

We are experiencing a memory leak when using the libnginx-mod-redirectionio module in a production environment.

Context
Nginx running in Cloud Run
redirection.io agent running on a private IP (10.x.x.x:10301)
High traffic production environment
Module version tested:
❌ v2.8.0 → clear memory leak
❌ v3.0.0 → issue still persists in production

Configuration
redirectionio on;
redirectionio_pass 10.0.0.233:10301 min_conns=0 keep_conns=0 max_conns=1 timeout=50;
redirectionio_logs off;

We intentionally minimized connection usage to rule out connection pool issues.

Observed behavior:
With redirection.io enabled:
Memory usage increases steadily over time
Eventually reaches container limits → restart
Pattern repeats after each restart
With redirection.io disabled:
Memory usage remains stable
No leak observed

This strongly suggests the issue is related to the redirection.io module.

Question
Are you aware of any memory leak issues in v3.0.0 under high traffic?
Could this be related to specific request patterns or responses?
Any debugging flags or recommendations to help isolate the issue further?

Thanks a lot for your help 🙏

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