Skip to content

Possible thread/memory leak #7006

@mperham

Description

@mperham

When a Sidekiq job fails, Sidekiq creates a retry in Redis but it also throws away the entire Processor object and Thread to ensure all jobs execute with "known good state".

A Customer reports memory leakage after upgrading from Ruby 3.4 to 4.0, we suspect due to new Processor threads continuing to hold reference to old Processor threads. Their investigation led to the "fix" in commit 2ada6ab. After deploying the fix, they saw the attached memory graph showing much lower memory usage.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions