Title: Memory leaks after updating from 7.37.1 to 7.37.2 · Issue #7215 · getsentry/sentry-javascript · GitHub
Open Graph Title: Memory leaks after updating from 7.37.1 to 7.37.2 · Issue #7215 · getsentry/sentry-javascript
X Title: Memory leaks after updating from 7.37.1 to 7.37.2 · Issue #7215 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7215
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Memory leaks after updating from 7.37.1 to 7.37.2","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### 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.\n\n@sentry/nextjs\n\n### SDK Version\n\n7.37.2\n\n### Framework Version\n\nNextJS 13.1.5\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```ts\r\nSentry.init({\r\n dsn: DSN,\r\n environment: ENVIRONMENT,\r\n release: RELEASE,\r\n tracesSampler: (samplingContext) => !!samplingContext.parentSampled || TRACES_SAMPLE_RATE,\r\n integrations: [\r\n // new Sentry.Replay({sessionSampleRate: 0, errorSampleRate: 1, maskAllInputs: true, useCompression: false}), // tried this\r\n // new Sentry.Replay({sessionSampleRate: 0, errorSampleRate: 1, maskAllInputs: true}), // then tried this\r\n // then tried without Replay\r\n new Sentry.BrowserTracing({tracingOrigins: [\"redacted\"]}),\r\n new Integrations.CaptureConsole({levels: [\"error\"]}),\r\n new Integrations.ExtraErrorData({depth: 10}),\r\n ],\r\n});\r\n```\n\n### Steps to Reproduce\n\n1. Update sentry packages from 7.37.1 to 7.37.2 and disabled replay compression\r\n2. Observe unexpected changes server memory utilization and server crashes\r\n3. Re-enable replay compression\r\n4. Observe memory changes still present after re-enabling replay compression (i.e. establish that compression enabled/disabled is not the cause)\r\n5. Remove replay's completely\r\n6. Observe memory changes still present without replays (i.e. establish that replays are not the cause)\n\n### Expected Result\n\nNo changes to memory utilization, no server crashes\n\n### Actual Result\n\nAfter 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.\r\n\r\n\u003cimg width=\"640\" alt=\"image\" src=\"https://user-images.githubusercontent.com/63979647/219627252-1ef99596-1ff4-47eb-999f-56c14c9a41a0.png\">\r\n\r\n\u003cimg width=\"674\" alt=\"image\" src=\"https://user-images.githubusercontent.com/63979647/219630555-e7768664-9e29-4f63-a3fd-f21a346b2616.png\">\r\n\r\n\u003cimg width=\"474\" alt=\"image\" src=\"https://user-images.githubusercontent.com/63979647/219630917-8425b6f0-48a1-4354-8e09-1c9da7dfe562.png\">\r\n\r\n","author":{"url":"https://github.com/jdpst","@type":"Person","name":"jdpst"},"datePublished":"2023-02-17T11:03:16Z","url":"https://github.com/getsentry/sentry-javascript/issues/7215"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6522ef64-fdb6-20dc-d52d-a8c8e69b7665 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FAC:29CA94:8F7FA0:C4BC0F:6B048117 |
| html-safe-nonce | 877f6bdea00db592a5fd4ac4fa6f436ede84682368dc78bb8c32c51db89fbd94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkFDOjI5Q0E5NDo4RjdGQTA6QzRCQzBGOjZCMDQ4MTE3IiwidmlzaXRvcl9pZCI6IjcwNTk5Njk2NTI3MTMzNTc1OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ef1a7a135439122d01f081f2f78271398e179e0d240560c2b12e9028d86bfe42 |
| hovercard-subject-tag | issue:1589180845 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/7215/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45e52e441c290b8ef6d0b1f15f4140380ab7417ff688c92bfffdd43524070931/getsentry/sentry-javascript/issues/7215 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45e52e441c290b8ef6d0b1f15f4140380ab7417ff688c92bfffdd43524070931/getsentry/sentry-javascript/issues/7215 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jdpst |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width