Closed
Description
Package + Version
-
@sentry/browser
-
@sentry/node
Version:
4.3.4
Description
I tried integrating sentry into ah next.js project. I tried it using this template https://github.com/sheerun/next.js/tree/with-sentry-fix/examples/with-sentry and discovered what seems to be a memory-leak in sentry. If you check out this project and add memwatch
if (!dev) {
memwatch.on("leak", info => {
console.log("memwatch::leak");
console.error(info);
});
memwatch.on("stats", stats => {
console.log("memwatch::stats");
console.error(Util.inspect(stats, true, null));
});
}
and bombard the server with requests, i requested the following ressources:
"/",
"/_next/static/r1zovjaZ1TujaA0hJEp91/pages/_app.js",
"/_next/static/r1zovjaZ1TujaA0hJEp91/pages/_error.js",
"/_next/static/r1zovjaZ1TujaA0hJEp91/pages/index.js",
"/_next/static/runtime/main-1eaa6d1d0c8e7d048efd.js",
"/_next/static/chunks/commons.b34d260fee0c4a698139.js",
"/_next/static/runtime/webpack-42652fa8b82c329c0559.js"
With this the memory-usage grows endlessly for me. As soon as i remove the request and errorHandler from server.js the memory-leak stops. So it seems to be connected to those 2
Metadata
Metadata
Assignees
Labels
No labels