Skip to content

Memory leaks after updating from 7.37.1 to 7.37.2 #7215

@jdpst

Description

@jdpst

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js) in your SDK setup.

@sentry/nextjs

SDK Version

7.37.2

Framework Version

NextJS 13.1.5

Link to Sentry event

No response

SDK Setup

Sentry.init({
  dsn: DSN,
  environment: ENVIRONMENT,
  release: RELEASE,
  tracesSampler: (samplingContext) => !!samplingContext.parentSampled || TRACES_SAMPLE_RATE,
  integrations: [
    // new Sentry.Replay({sessionSampleRate: 0, errorSampleRate: 1, maskAllInputs: true, useCompression: false}), // tried this
    // new Sentry.Replay({sessionSampleRate: 0, errorSampleRate: 1, maskAllInputs: true}), // then tried this
    // then tried without Replay
    new Sentry.BrowserTracing({tracingOrigins: ["redacted"]}),
    new Integrations.CaptureConsole({levels: ["error"]}),
    new Integrations.ExtraErrorData({depth: 10}),
  ],
});

Steps to Reproduce

  1. Update sentry packages from 7.37.1 to 7.37.2 and disabled replay compression
  2. Observe unexpected changes server memory utilization and server crashes
  3. Re-enable replay compression
  4. Observe memory changes still present after re-enabling replay compression (i.e. establish that compression enabled/disabled is not the cause)
  5. Remove replay's completely
  6. Observe memory changes still present without replays (i.e. establish that replays are not the cause)

Expected Result

No changes to memory utilization, no server crashes

Actual Result

After updating the packages, memory utilisation changed very dramatically with huge variations. On several occasions this brought down the instances (503s reported by users). Consistent across several clients, e.g.

image

image

image

Metadata

Metadata

Assignees

Labels

No labels
No labels
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