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.

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.