Skip to content

Version 7.49.0 seems to be leaking memory #7982

Description

@phil-tutti

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

7.49.0

Framework Version

@sentry/integrations": "7.49.0, @sentry/node": "7.49.0, @sentry/react": "7.49.0

Link to Sentry event

No response

SDK Setup

 Sentry.init({
dsn: "someString",
integrations: [
new SentryIntegrations.RewriteFrames(),
],
environment: ENVIRONMENT,
sampleRate: ERROR_SAMPLE_RATE,
});
// The request handler must be the first middleware on the app
app.use(
Sentry.Handlers.requestHandler({
request: ["data", "headers", "method", "query_string", "url"],
})
);

and

app.use(Sentry.Handlers.errorHandler());

to catch errors

Steps to Reproduce

As written in this PR: #7752 (comment), 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.

For SSR, we're setting up the sentry/node together with sentry/integration package. sentry/browser is not being used on server side.

Here's also an excerpt from our package.json.

"dependencies": {
"@emotion/cache": "11.10.7",
"@emotion/react": "11.10.6",
"@emotion/server": "11.10.0",
"@emotion/styled": "11.10.6",
"@formatjs/intl-getcanonicallocales": "2.1.0",
"@formatjs/intl-locale": "3.1.1",
"@formatjs/intl-pluralrules": "5.1.10",
"@formatjs/intl-relativetimeformat": "11.1.10",
"@loadable/component": "5.15.3",
"@loadable/server": "5.15.3",
"@mui/icons-material": "5.11.16",
"@mui/lab": "5.0.0-alpha.125",
"@mui/material": "5.11.16",
"@mui/styled-engine": "5.11.16",
"@mui/system": "5.11.16",
"@optimizely/optimizely-sdk": "4.9.3",
"@reduxjs/toolkit": "1.9.3",
"@sentry/integrations": "7.49.0",
"@sentry/node": "7.49.0",
"@sentry/react": "7.49.0",
"@tanstack/react-query": "4.29.3",
"@tanstack/react-query-devtools": "4.29.3",
"axios": "0.21.2",
"classnames": "2.3.2",
"cookie-parser": "1.4.6",
"core-js": "3.30.0",
"cross-fetch": "3.1.5",
"express": "4.18.2",
"express-useragent": "1.0.15",
"http-proxy-middleware": "2.0.6",
"https": "1.0.0",
"https-browserify": "1.0.0",
"intl": "1.2.5",
"ky": "0.33.3",
"lodash": "4.17.21",
"process": "0.11.10",
"prom-client": "14.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-helmet-async": "1.3.0",
"react-hook-form": "7.43.9",
"react-intl": "6.3.2",
"react-lazyload": "3.2.0",
"react-redux": "7.2.9",
"react-router-dom": "6.8.2",
"react-use": "17.4.0",
"react-useportal": "1.0.18",
"react18-input-otp": "1.1.3",
"redux": "4.2.1",
"resolve-url-loader": "5.0.0",
"stream-http": "3.2.0",
"use-debounce": "9.0.4",
"use-immer": "0.9.0",
"usehooks-ts": "2.9.1",
}

We're using express, with node: 16 running on our servers. We render our react application server-side, together with MUI and emotion

Expected Result

A graph like this for our memory usage over time

Screenshot 2023-04-27 at 07 02 52

Actual Result

Screenshot 2023-04-27 at 07 02 21

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions