Title: Version 7.49.0 seems to be leaking memory · Issue #7982 · getsentry/sentry-javascript · GitHub
Open Graph Title: Version 7.49.0 seems to be leaking memory · Issue #7982 · getsentry/sentry-javascript
X Title: Version 7.49.0 seems to be leaking memory · Issue #7982 · 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/7982
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Version 7.49.0 seems to be leaking memory","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?\n\n@sentry/node\n\n### SDK Version\n\n7.49.0\n\n### Framework Version\n\n@sentry/integrations\": \"7.49.0, @sentry/node\": \"7.49.0, @sentry/react\": \"7.49.0\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```\r\n Sentry.init({\r\n dsn: \"someString\",\r\n integrations: [\r\n new SentryIntegrations.RewriteFrames(),\r\n ],\r\n environment: ENVIRONMENT,\r\n sampleRate: ERROR_SAMPLE_RATE,\r\n });\r\n\r\n // The request handler must be the first middleware on the app\r\n app.use(\r\n Sentry.Handlers.requestHandler({\r\n request: [\"data\", \"headers\", \"method\", \"query_string\", \"url\"],\r\n })\r\n );\r\n```\r\n\r\nand \r\n\r\n```\r\napp.use(Sentry.Handlers.errorHandler());\r\n```\r\n\r\nto catch errors\n\n### Steps to Reproduce\n\nAs written in this PR: https://github.com/getsentry/sentry-javascript/pull/7752#issuecomment-1524710961, we started to see a constant increase of memory , that is not getting cleaned up when we switched from 7.46.0 to 7.49.0. Once we reverted this version, everything went back to normal.\r\n\r\nFor SSR, we're setting up the `sentry/node` together with `sentry/integration` package. `sentry/browser` is not being used on server side.\r\n\r\nHere's also an excerpt from our package.json.\r\n```\r\n\"dependencies\": {\r\n \"@emotion/cache\": \"11.10.7\",\r\n \"@emotion/react\": \"11.10.6\",\r\n \"@emotion/server\": \"11.10.0\",\r\n \"@emotion/styled\": \"11.10.6\",\r\n \"@formatjs/intl-getcanonicallocales\": \"2.1.0\",\r\n \"@formatjs/intl-locale\": \"3.1.1\",\r\n \"@formatjs/intl-pluralrules\": \"5.1.10\",\r\n \"@formatjs/intl-relativetimeformat\": \"11.1.10\",\r\n \"@loadable/component\": \"5.15.3\",\r\n \"@loadable/server\": \"5.15.3\",\r\n \"@mui/icons-material\": \"5.11.16\",\r\n \"@mui/lab\": \"5.0.0-alpha.125\",\r\n \"@mui/material\": \"5.11.16\",\r\n \"@mui/styled-engine\": \"5.11.16\",\r\n \"@mui/system\": \"5.11.16\",\r\n \"@optimizely/optimizely-sdk\": \"4.9.3\",\r\n \"@reduxjs/toolkit\": \"1.9.3\",\r\n \"@sentry/integrations\": \"7.49.0\",\r\n \"@sentry/node\": \"7.49.0\",\r\n \"@sentry/react\": \"7.49.0\",\r\n \"@tanstack/react-query\": \"4.29.3\",\r\n \"@tanstack/react-query-devtools\": \"4.29.3\",\r\n \"axios\": \"0.21.2\",\r\n \"classnames\": \"2.3.2\",\r\n \"cookie-parser\": \"1.4.6\",\r\n \"core-js\": \"3.30.0\",\r\n \"cross-fetch\": \"3.1.5\",\r\n \"express\": \"4.18.2\",\r\n \"express-useragent\": \"1.0.15\",\r\n \"http-proxy-middleware\": \"2.0.6\",\r\n \"https\": \"1.0.0\",\r\n \"https-browserify\": \"1.0.0\",\r\n \"intl\": \"1.2.5\",\r\n \"ky\": \"0.33.3\",\r\n \"lodash\": \"4.17.21\",\r\n \"process\": \"0.11.10\",\r\n \"prom-client\": \"14.2.0\",\r\n \"react\": \"18.2.0\",\r\n \"react-dom\": \"18.2.0\",\r\n \"react-helmet-async\": \"1.3.0\",\r\n \"react-hook-form\": \"7.43.9\",\r\n \"react-intl\": \"6.3.2\",\r\n \"react-lazyload\": \"3.2.0\",\r\n \"react-redux\": \"7.2.9\",\r\n \"react-router-dom\": \"6.8.2\",\r\n \"react-use\": \"17.4.0\",\r\n \"react-useportal\": \"1.0.18\",\r\n \"react18-input-otp\": \"1.1.3\",\r\n \"redux\": \"4.2.1\",\r\n \"resolve-url-loader\": \"5.0.0\",\r\n \"stream-http\": \"3.2.0\",\r\n \"use-debounce\": \"9.0.4\",\r\n \"use-immer\": \"0.9.0\",\r\n \"usehooks-ts\": \"2.9.1\",\r\n }\r\n```\r\n\r\nWe're using `express`, with `node: 16` running on our servers. We render our react application server-side, together with MUI and emotion\n\n### Expected Result\n\nA graph like this for our memory usage over time\r\n\r\n\u003cimg width=\"2598\" alt=\"Screenshot 2023-04-27 at 07 02 52\" src=\"https://user-images.githubusercontent.com/107399977/234840509-79f74335-c208-4163-82b7-72275050736d.png\">\r\n\n\n### Actual Result\n\n\u003cimg width=\"2598\" alt=\"Screenshot 2023-04-27 at 07 02 21\" src=\"https://user-images.githubusercontent.com/107399977/234840585-022cadf2-ab29-47c6-bd9e-90959f5712f3.png\">\r\n","author":{"url":"https://github.com/phil-tutti","@type":"Person","name":"phil-tutti"},"datePublished":"2023-04-27T10:50:18Z","url":"https://github.com/getsentry/sentry-javascript/issues/7982"}
| 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:cdaa9faa-2a01-59a5-eead-9bdb7aadaf9e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7B8:24E74B:6B0DFC:93910B:6B04A72C |
| html-safe-nonce | b70d801b576717c407d763c3f3c2a2d494c6771a80f0846643ec02a8a90785fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0I4OjI0RTc0Qjo2QjBERkM6OTM5MTBCOjZCMDRBNzJDIiwidmlzaXRvcl9pZCI6IjQ0OTE0NTY5MzE5ODY0NTAyMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 02715c70bc6c34905295b2d3f8e323cff684a14d9f475ec9f8155f870bf860fa |
| hovercard-subject-tag | issue:1686599684 |
| 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/7982/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a2037e2ceaad9d8accb50a581b45b4c034d8eb0c2d715326bed41e7b90b3675/getsentry/sentry-javascript/issues/7982 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a2037e2ceaad9d8accb50a581b45b4c034d8eb0c2d715326bed41e7b90b3675/getsentry/sentry-javascript/issues/7982 |
| 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 | phil-tutti |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| ui-target | canary-2 |
| 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